VRBL-INV-SYSTEM-27

Basic Info

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

Used Template: SystemLengthLimit

Parameter Value
probe = cac:AccountingCustomerParty/cac:Party/cbc:EndpointID
length = 100

Implementation

not(boolean(cac:AccountingCustomerParty/cac:Party/cbc:EndpointID))
or
string-length(normalize-space((cac:AccountingCustomerParty/cac:Party/cbc:EndpointID)[1])) <= 100