BR-RO-L0201

Numarul maxim permis de caractere pentru Codul postal al Vanzatorului (BT-38) este 20. #The allowed maximum number of characters for the Seller post code (BT-38) is 20.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

[BR-RO-L020] Numarul maxim permis de caractere pentru Codul postal al Vanzatorului (BT-38) este 20. #The allowed maximum number of characters for the Seller post code (BT-38) is 20.

Context
/ubl:Invoice | /cn:CreditNote
Test
string-length(normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone)) <=20

Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)