VRBL-INV-DK-OIOUBL-2p0-76

Basic Info

Rule If the Buyer Party Legal Entity Company ID is marked as a Danish CPR, it must be a valid CPR number, like '1234560000'.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
Pattern vrbl-invoice-dk-oioubl-2p0
Severity fatal

Used Template: VRBL-DK-schemeID-CPR

Implementation

not(@schemeID = concat($VRBL-DK-Prefix, 'CVR'))
or
(
	string-length(normalize-space(.)) = 10
)