VRBL-INV-SYSTEM-29

Basic Info

Rule If there is a value for %{probe}, the allowed maximum number of characters is 100.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:BuyerCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID='DUNS']/cbc:CompanyID
length = 100

Implementation

not(boolean(cac:BuyerCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID='DUNS']/cbc:CompanyID))
or
string-length(normalize-space((cac:BuyerCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID='DUNS']/cbc:CompanyID)[1])) <= 100