BR-RO-L0504

Numarul maxim permis de caractere pentru Localitatea de livrare (BT-77) este 50. #The allowed maximum number of characters for the Deliver to city (BT-77) is 50.

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-L050] Numarul maxim permis de caractere pentru Localitatea de livrare (BT-77) este 50. #The allowed maximum number of characters for the Deliver to city (BT-77) is 50.

Context
/ubl:Invoice | /cn:CreditNote
Test
string-length(normalize-space(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CityName)) <= 50

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