VRBL-INV-PL-B2B-3-13

Basic Info

Rule If the Seller Legal Registration ID exists, it must be 10 digits.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
Pattern vrbl-invoice-pl-b2b-3p0
Severity fatal

Implementation

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