VRBL-INV-FR-CIUS-1p0-229

Basic Info

Rule If the Seller Legal Registration ID is marked as a SIREN-CODE, it must be 9 digits.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Used Template: VRBL-FR-schemeID-0002

Implementation

not(@schemeID = '0002')
or
(
	string-length(normalize-space(.)) = 9
	and
	string-length(translate(normalize-space(.), $Numerics, '')) = 0
)