VRBL-INV-SYSTEM-35

Basic Info

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

Used Template: SystemLengthLimit

Parameter Value
probe = cac:BuyerCustomerParty/cac:Party/cac:Contact/cbc:Name
length = 500

Implementation

not(boolean(cac:BuyerCustomerParty/cac:Party/cac:Contact/cbc:Name))
or
string-length(normalize-space((cac:BuyerCustomerParty/cac:Party/cac:Contact/cbc:Name)[1])) <= 500