EHF-COMMON-R003
MUST be a valid Norwegian organization number. Only numerical value allowed
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 = '0192'] | cac:PartyIdentification/cbc:ID[@schemeID = '0192'] | cbc:CompanyID[@schemeID = '0192']
Test
matches(normalize-space(), '^[0-9]{9}$') and u:mod11(normalize-space())
Checked with Norway EHF Reminder 3.0