warningEN 16931syntax binding ruleUBL
A UBL invoice shall not include the AdditionalDocumentReference DocumentTypeCode listID
The additional document reference's DocumentTypeCode carries a listID.
Remove the listID attribute. The permitted values (50, 130) are fixed by EN 16931 itself.
UBL — context /ubl:Invoice | /cn:CreditNote
not(cac:AdditionalDocumentReference/cbc:DocumentTypeCode/@listID)
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.