fatalEN 16931syntax binding ruleUBL
A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Document Description
One AdditionalDocumentReference is being used both as an invoiced object identifier and as something else.
Use a separate AdditionalDocumentReference for each purpose.
UBL — context /ubl:Invoice | /cn:CreditNote
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cbc:DocumentDescription)
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.