BR-TMP-2

BT-124 "External document location" muss eine absolute URL mit gültigem Schema enthalten.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
/ubl:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference | /cn:CreditNote/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference
Test
matches(cbc:URI, $XR-URL-REGEX)

Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument[ram:TypeCode = '916']
Test
not(exists(ram:URIID)) or (matches(ram:URIID, $XR-URL-REGEX))

Checked with XRechnung 3.0 Invoice (CII)