VRBL-INV-SYSTEM-34

Basic Info

Rule If there is a value for Buyer Customer Party Legal Entity Registration Name, 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:PartyLegalEntity/cbc:RegistrationName
length = 500

Implementation

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