Schematron is an ISO Standard and a technology heavily based on XPath und XSLT. For general information about schematron see http://schematron.com/
To do a schematron validation of a VEC File the following requirements are necessary:
The following steps are explaining the validation procedure when using the ISO schematron skeleton. For other validators similar steps are necessary. Schematron validation with the skeleton consists of two phases.
In the first, the schema is compiled into a XSLT stylesheet. This has only to be done once per schema. In the second phase, the resulting XSLT stylesheet is applied to the file that should be validated. The result of this is an XML file describing the validation errors (normally in Schematron Validation Reporting Language (SVRL).
For the compilation of the schema, the following steps are necessary:
import-schemain the VEC schematron schema is pointing to a valid URL of the corresponding XML Schema.
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> <xsl:import-schema xmlns:xsl="http://www.w3.org/1999/XSL/Transform" schema-location="VEC%201.1.3-strict.xsd" namespace="http://www.prostep.org/ecad-if/2011/vec"/> <sch:ns prefix="vec" uri="http://www.prostep.org/ecad-if/2011/vec"/>
iso_svrl_for_xslt2.xsl. Since we currently do not use partial schemas and abstract patterns, the first two can be omitted. So only the processing with
iso_svrl_for_xslt2.xslis necessary. Here it is important to turn on the parameter
allow-foreign, because otherwise the VEC schema information will not be imported.