VRBL-INV-SYSTEM-49

Basic Info

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

Used Template: SystemLengthLimit

Parameter Value
probe = cac:Delivery/cac:DeliveryParty/cac:PartyName/cbc:Name
length = 500

Implementation

not(boolean(cac:Delivery/cac:DeliveryParty/cac:PartyName/cbc:Name))
or
string-length(normalize-space((cac:Delivery/cac:DeliveryParty/cac:PartyName/cbc:Name)[1])) <= 500