Rules / IBR-133-AE
VAT scheme code, if provided in or or or or or shall be 'VAT' except when Seller tax registration identifier is provided
VAT scheme code, if provided in (IBT-095-1) or (IBT-031-1) or (IBT-048-1) or (IBT-063-1) or (IBT-102-1) or (IBT-118-1) shall be 'VAT' except when Seller tax registration identifier (IBT-032) is provided.
Fails when this is false
. = "VAT" or exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID[ string-length(normalize-space(.)) = 10 and starts-with(normalize-space(.), "1") and translate(normalize-space(.), "0123456789", "") = ""])The schematron test, verbatim. Context: cac:TaxScheme/cbc:ID
Fix
Change the data so the condition below holds. It reads cac:AccountingSupplierParty, cac:Party, cac:PartyTaxScheme, cbc:CompanyID. Paste the invoice into the validator to see the exact element that fails.