BR-TMP-2
BT-124 "External document location" muss eine absolute URL mit gültigem Schema enthalten.
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.
/ubl:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference | /cn:CreditNote/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference
matches(cbc:URI, $XR-URL-REGEX)
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument[ram:TypeCode = '916']
not(exists(ram:URIID)) or (matches(ram:URIID, $XR-URL-REGEX))
Checked with XRechnung 3.0 Invoice (CII)