VRBL-INV-SYSTEM-20

Basic Info

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

Used Template: SystemLengthLimit

Parameter Value
probe = cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName
length = 200

Implementation

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