BR-DEX-07

Any scheme identifier for an Endpoint Identifier in … MUST belong to the CEF EAS code list.

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
cbc:EndpointID[@schemeID and $isExtension]
Test
((not(contains(normalize-space(@schemeID), ' ')) and contains($CEF-EAS-EXT-CODES, concat(' ', normalize-space(@schemeID), ' '))))

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

Context
ram:URIUniversalCommunication/ram:URIID[@schemeID and $isExtension]
Test
((not(contains(normalize-space(@schemeID), ' ')) and contains($CEF-EAS-EXT-CODES, concat(' ', normalize-space(@schemeID), ' '))))

Checked with XRechnung 3.0 Invoice (CII)