VRBL-INV-SYSTEM-25

Basic Info

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

Used Template: SystemLengthLimit

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

Implementation

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