All rules · tdd-ae · error
ibr-tdd-57
The embedded invoice XML (tdt-012) must be a UBL 2.1 Invoice or Credit Note.
Draft — not yet reviewed
Why this rule exists
The authority checks the summary against the original document. Anything other than the original UBL cannot be checked.
Why it usually happens
- Embedding the invoice as escaped text or base64 rather than as XML
- Embedding the SBDH envelope instead of the invoice inside it
- A PDF rendering instead of the XML
How to fix it
Embed the UBL Invoice or CreditNote element itself inside cec:ExtensionContent, unescaped.
<pxs:SourceDocument>
<cec:ExtensionContent>
<ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">…</ubl:Invoice>
</cec:ExtensionContent>
</pxs:SourceDocument>The official rule
The Invoice XML (tdt-012) MUST contain either a UBL 2.1 Invoice or a UBL 2.1 Credit Note
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
exists(ubl:Invoice) or exists(cn:CreditNote)
Applied to nodes matching /pxs:TaxData/pxs:ReportedTransaction/pxs:SourceDocument/cec:ExtensionContent
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| tdd-ae-1.0.4 | tdd-ae | error | tax-reporting/taxdata |
| tdd-ae-1.0.3 | tdd-ae | error | tax-reporting/taxdata |
Related rules
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator