ISDOC 6.0.2
Czech e-invoice (ISDOC)
The Czech format for electronic invoices, read by most Czech accounting software, checked against its schema, its Schematron rules and the amount rules of the standard
About
ISDOC is an XML invoice format based on UBL, used between Czech companies and towards public bodies. An .isdoc file is the XML itself; an .isdocx file is a ZIP that also holds attachments; an ISDOC.PDF is a PDF/A-3a with the invoice attached as invoice.isdoc.
After the schema, the rules the standard publishes as Schematron run (ISDOC-4.1.1 to ISDOC-4.1.9: the original document of a credit note, foreign and local currency amounts, non-VAT documents, batches and item identifiers), then the rules of the standard's appendix A that its Schematron leaves out: how the VAT summary and the totals add up, advance payments, the amount to pay and the empty UUID (XV-CZ-*).
E-invoicing in the Czech Republic: the rules in short and how to check an invoice →
Good to know
- Rules run only when the document matches the schema.
- The ISDOC rules are MVČR's isdoc-6.0.2.sch with an id on each assertion after the section of the standard it checks, two tests fixed that are not valid XPath ("satisfied", a missing parenthesis), and the two rules of 4.1.3 made one, as the second (no amounts in a foreign currency on a local currency document) never ran. The XV-CZ rules are written by xmlvalid after the standard; amounts may be a cent off. The IČO check digit and the form of a Czech DIČ are warnings.
- An ISDOC.PDF opens on its own: the attached invoice.isdoc is validated, and the PDF is checked against section 3.2 of the standard (PDF/A-3a, the attachment's /F, /UF, /AFRelationship Source or Alternative and text/xml, /AF and the EmbeddedFiles names) and its text against the invoice. An .isdocx package opens too: the document its manifest.xml names is validated, and the package is checked against section 3.3 (manifest, encryption, compression, UTF-8 names). In both, the attachments SupplementsList names must be there with the digest it gives.
- The example is by xmlvalid.com: one invoice line with 21% VAT and fictitious company numbers.
Files
1 file · 137.4 KB · Download all (.zip)-
isdoc-invoice-6.0.2.xsd main
Business rules
Schematron · run in this orderThe rules run after the schema check, only when the document matches the schema, and in your browser like the schema check (with SaxonJS by Saxonica). Each finding names its rule, such as BR-CO-15, and the line it points at; each rule has a page with what it checks.
Example document
faktura.isdoc · 3.8 KB · passes the schema and the rules
In CI and from code
The same schema by its name, isdoc-6.0.2, through the API.
npx @xmlvalid/cli validate "**/*.xml" --schema isdoc-6.0.2
- uses: xmlvalid/validate-action@v1
with:
files: "**/*.xml"
schema: isdoc-6.0.2
api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
-H "Authorization: Bearer $XMLVALID_API_KEY" \
-F document=@faktura.isdoc \
-F schema=isdoc-6.0.2
Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups