Local validation of a UAE e-invoice means checking the XML against the UBL 2.1 schema and then against the published PINT AE schematron rules, exactly as an Accredited Service Provider does. The schemas and rule sets are public. You can run them with command-line tools, embed them in your application, automate them in continuous integration against a corpus of scenario documents, or use a browser-based validator for ad-hoc checks. Validating locally reduces rejections to near zero and keeps your issuance within the 14-business-day window.
Key facts at a glance
- Two layers: XSD (UBL 2.1) then schematron (PINT AE).
- Rule sets are public on docs.peppol.eu under the AE profile.
- Results list rule IDs (e.g. IBR-103-AE) with severity and message.
- Automate in CI against a scenario corpus; run at release on every real document.
- Browser validators keep your data on your machine; useful for finance users.
Step 1: Get the artefacts
Download the UBL 2.1 XSD package from OASIS and the current PINT AE schematron from the Peppol documentation site. Note the release identifiers; you will pin them. If your provider publishes its own copy or additional rules, obtain those too and record the version.
Step 2: Run schema validation
# Command line with xmllint xmllint --noout --schema UBL-Invoice-2.1.xsd invoice.xml
Schema errors are about structure: unknown elements, wrong order, missing required elements. Fix these before looking at business rules, because a schema-invalid document produces misleading schematron output.
Step 3: Run schematron validation
# Compile schematron to XSLT once (ISO skeleton), then apply saxon -s:invoice.xml -xsl:pint-ae.xsl -o:report.svrl # Inspect failed assertions xmllint --xpath "//*[local-name()='failed-assert']" report.svrl
The SVRL report lists failed assertions with their IDs, flags (fatal or warning) and messages. Fatal failures mean rejection; warnings mean review.
Step 4: Interpret and fix
| Rule family | Usual cause | Usual fix |
|---|---|---|
| Arithmetic / ALIGNED | Rounding at different stages | Single calculation order; round once per level |
| Identifier (IBR-xxx-AE) | Missing or malformed TIN/TRN | Validate master data; derive TIN correctly |
| Category alignment | Line category without breakdown | Generate one subtotal per category/rate present |
| Code list | Unit, currency or reason code outside lists | Map to permitted codes |
| References | Credit note without billing reference | Make original invoice number mandatory on credit notes |
Step 5: Automate
Keep a corpus of scenario documents (one per invoice type you issue) in your repository. On every build, generate each from fixed input data and validate; fail the build on any fatal assertion. At runtime, validate each real document before calling the provider and block submission on fatal results, routing them to a finance queue with the rule messages translated into plain language.
Where Zaini Developers fits in
Our free browser-based PINT AE validator runs these exact rules client-side, and the engine in pint-ae runs them server-side. In client builds we wire both: finance users check ad hoc, the pipeline checks every document.
Book a free consultation →Frequently asked questions
Is local validation identical to my provider's validation?
It should be for the published rules. Providers may add platform-specific checks; ask for the list.
Which XSLT processor do I need?
Schematron compiled with the ISO skeleton generally needs XSLT 2.0 or later; Saxon-HE is the common choice.
Can finance staff validate without developers?
Yes, with a browser validator: drop the XML, read the results in plain language.
How often do the rules change?
Peppol publishes releases periodically; subscribe to the AE profile changelog and re-run your corpus on each release.
