VRBL-INV-ES-B2G-62

Basic Info

Rule The Buyer Postal Zone must only include digits, and allows up to 5 digits.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PostalZone
Pattern vrbl-invoice-es-b2g
Severity fatal

Used Template: VRBL-ES-B2G-PostalZone

Implementation

string-length(translate(normalize-space(.), $Numerics, '')) = 0
and
string-length(normalize-space(.)) <= 5