VRBL-INV-SYSTEM-14

Basic Info

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

Used Template: SystemLengthLimit

Parameter Value
probe = cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Telephone
length = 300

Implementation

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