VRBL-INV-IT-1p2-99

Basic Info

Rule When used for EORI, the Buyer Party Identification ID is restricted to 13 to 17 characters.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
Pattern vrbl-invoice-it-1p2
Severity fatal

Implementation

not(@schemeID = concat($VRBL-IT-Prefix, 'EORI'))
or
(
	string-length(normalize-space(.)) >= 13
	and
	string-length(normalize-space(.)) <= 17
)