UPDATE: On 2018-10-16 this repository has seen a big reorganization; we have split up the repository into subdirectories per function. The mayor changes are the restructuring of the directory layout, and lowercasing of the default files. If you know of any place that linked to files directly, please let us know. Note: We have updated the convert_windows.bat file but not tested it.
This repository contains all files related to validation of the simplerinvoicing XML files.
If you are just looking for the latest validation artefacts in xsl form, you can find them here:
- SI-UBL Invoice all versions up to 1.2
- SI-UBL 1.1 Invoice
- SI-UBL 1.2 Invoice
- SI-UBL 1.2 Purchase Order
- SI-UBL 2.0 Invoice and CreditNote (2.0.1)
Note that we have removed the 'all-versions' schematron.
The ready-to-use transformation stylesheets can be found in the xsl/ directory; there is a separate xsl file for each version of SI-UBL, and one big xsl-file that combines them all (si-ubl-inv-all.xsl). For SI-UBL 1.2, there is also a purchaseorder xsl.
The schematron/ directory contains all the source schematron files, also by version. The main sch files are present in this directory, and they reference files in subdirectories per version.
The rule_overviews/ directory contains a few assorted documents, and overview of the rules per version, generated from the xsl files.
The tools/ directory contains the tools to recreate the xsl files from the schematron files. For instance, to create a fresh SI-UBL-1.2 xsl file, you can use the command: ./tools/convert_linux.sh schematron/si-ubl-1.2.sch /tmp/si-ubl-1.2.xsl
The build_all_linux.sh script rebuilds all generated files in this repository, based on the schematron files.
This is the version of SI-UBL that is based on the NLCIUS, which is a CIUS on the European Norm (EN-16931) and adds Dutch country-specific rules.
Since this is based on EN-16931, there are major differences between SI-UBL 1.2 and SI-UBL 2.0. For more information about the new rules, see https://www.stpe.nl/media/stpe.nl-gebruiksinstructie-basisfactuur-v1.0.pdf
The schematron can be found here and the generated xsl here
This schematron definition is based on the CenPC434 schematron, which can be found at https://github.com/CenPC434/validation . The commit that was included at the time of the release of SI-UBL-2.0.1 was https://github.com/CenPC434/validation/commits/20159a3a9fdf7700f355ff45fd3e104ce4b54d66 (tag validation-1.2.1).
We have a number of test documents available in a separate repository, it can be found here