warningEN 16931syntax binding ruleCII
ExemptionReason should not be present
'ExemptionReason' is present somewhere this profile does not allow it. It is not forbidden outright: the rule permits it on ApplicableTradeTax, and rejects it everywhere else — so what is wrong is where it appears, not that it appears at all.
Do not strip 'ExemptionReason' from the whole document; that would delete it from the one place it belongs. Keep it on ApplicableTradeTax, remove the other occurrences, and read the expression below for the exact condition the validator applies. Reported as a warning.
CII — context //ram:*[ends-with(name(), 'TradeTax')]
not(ram:ExemptionReason) or self::ram:ApplicableTradeTax
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.