Message

MUST be a valid Norwegian organization number. Only numerical value allowed

Context
espd-cac:EconomicOperatorParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'NO:ORGNR'] | cbc:EndpointID[@schemeID = 'NO:ORGNR']
Test
matches(normalize-space(text()), '^[0-9]{9}$') and u:mod11(normalize-space(text()))
Usage
/ espd-req:ESPDRequest / cac:ContractingParty / cac:Party / cbc:EndpointID
/ espd:ESPDResponse / cac:ContractingParty / cac:Party / cbc:EndpointID
/ espd:ESPDResponse / espd-cac:EconomicOperatorParty / cac:Party / cbc:EndpointID
/ espd:ESPDResponse / espd-cac:EconomicOperatorParty / cac:Party / cac:PartyIdentification / cbc:ID