VRBL-INV-SYSTEM-36

Basic Info

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

Used Template: SystemLengthLimit

Parameter Value
probe = cac:BuyerCustomerParty/cac:Party/cac:Contact/cbc:ElectronicMail
length = 300

Implementation

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