SchematronPreparser

Prev Next

Class name

com.ebd.hub.datawizard.parser.SchematronPreparser

Description

This preparser performs a Schematron validation of an XML file. The result is an XML report file.

Configuration

The configuration takes place either in a properties file or analogously via "MSG_CALL_" variables.

Either an XSL file or a Schematron file with associated XSL files can be specified. Important note: All specified files (including referenced files) must be located in the same folder.

XSL

schematron.xsl.path=./tmp/XRechnung-CII-validation.xsl

Schematron and XSL

schematron.path=./tmp/XRechnung-CII-validation.sch
schematron.xsl.dependecies.path=./tmp/iso_dsdl_include.xsl;./tmp/iso_abstract_expand.xsl;./tmp/iso_svrl_for_xslt2.xsl

Note: Please note that the order of the specified XSL files is relevant.

Note: To validate a file with the ".sch" file, you also need the iso files which can be downloaded under https://github.com/Schematron/schematron/releases/

Similarly, the configuration can also be carried out using MSG_CALL_ variables (e.g. by a preceding profile). Note: The variables must be named exactly like this in the predecessor profile, but must not be created in the successor profile.

MSG_CALL_SCHEMATRON_XSL_PATH=./tmp/XRechnung-CII-validation.xsl
MSG_CALL_SCHEMATRON_FILE_PATH=./tmp/XRechnung-CII-validation.sch
MSG_CALL_XSL_DEPENDENCIES_PATH=./tmp/iso_dsdl_include.xsl;./tmp/iso_abstract_expand.xsl;./tmp/iso_svrl_for_xslt2.xsl