VRBL-INV-DK-OIOUBL-2p0-66

Basic Info

Rule If the Buyer Party Identification ID is marked as a Danish CPR, it must be a valid CPR number, like '1234560000'.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
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
)