VRBL-INV-SYSTEM-48

Basic Info

Rule If there is a value for Delivery Location Country Identification Code, the allowed maximum number of characters is 50.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode
length = 50

Implementation

not(boolean(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode))
or
string-length(normalize-space((cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode)[1])) <= 50