Message

If both supplier and customer are located in Germany, BT-124 "External document location" must contain an absolute URL with valid scheme.

Context
(/ubl-invoice:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference | /ubl-creditnote:CreditNote/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference)[$supplierCountryIsDE and $customerCountryIsDE]
Test
matches(cbc:URI, $XR-URL-REGEX)
Usage
/ ubl:Invoice / cac:AdditionalDocumentReference / cac:Attachment / cac:ExternalReference / cbc:URI
/ ubl:CreditNote / cac:AdditionalDocumentReference / cac:Attachment / cac:ExternalReference / cbc:URI