VRBL-INV-DK-OIOUBL-2p0-68

Basic Info

Rule If the Buyer Party Identification ID is marked as a Danish P number, it must be 10 characters long.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
Pattern vrbl-invoice-dk-oioubl-2p0
Severity fatal

Used Template: VRBL-DK-schemeID-DKP

Implementation

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