BR-FR-10_BT-30
The rule sets below word this rule differently; each wording is shown with its rule set.
In English The seller's SIREN (BT-30, scheme 0002) must be given and be exactly 9 digits.
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
[BR-FR-10/BT-30] Le SIREN du vendeur (CompanyID[@schemeID='0002']) est obligatoire et doit être composé exactement de 9 chiffres. Valeur actuelle : " … ". Veuillez renseigner un identifiant SIREN valide.
cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity
$siren and matches(normalize-space($siren), '^\d{9}$')
Checked with France e-invoice (UBL), France e-credit note (UBL), France EXTENDED-CTC-FR (UBL)
BR-FR-10/BT-30 : Le SIREN du vendeur (ram:ID) est obligatoire et doit être composé exactement de 9 chiffres. Valeur actuelle : " … ". Veuillez renseigner un identifiant SIREN valide.
rsm:CrossIndustryInvoice
$siren and matches(normalize-space($siren), '^\d{9}$')
Checked with France e-invoice (CII), France Factur-X EN 16931, France EXTENDED-CTC-FR (CII), France Factur-X EXTENDED, France Factur-X BASIC WL