warningEN 16931syntax binding ruleUBL
A UBL invoice should not include a Sellers Item Identification schemeID
The seller's item identification carries a schemeID.
Remove schemeID from SellersItemIdentification/cbc:ID. Only the STANDARD item identifier (BT-157) takes a scheme, e.g. 0160 for a GTIN.
UBL — context /ubl:Invoice | /cn:CreditNote
not(//cac:SellersItemIdentification/cbc:ID/@schemeID)
Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.