VRBL-INV-ES-B2G-81

Basic Info

Rule The Buyer Administrative Center Postal Zone must only include digits, and allows up to 5 digits.
Context /ubl:Invoice/cac:AccountingCustomerParty/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AccountingCustomerPartyExtension/vrbl:AdministrativeCentre/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