<pipeline xmlns="http://www.w3.org/ns/xproc">
<output port="report" primary="false">
<pipe port="report" step="schematron"/>
</output>
<validate-with-xml-schema>
<input port="schema">
<document href="test1.xsd"/>
</input>
</validate-with-xml-schema>
<validate-with-schematron name="schematron" assert-valid="true">
<input port="schema">
<document href="test1.sch"/>
</input>
</validate-with-schematron>
</pipeline>
A few words of explanation.
<test
xmlns:overheid="http://standaarden.overheid.nl/owms/3.5/xml/waardelijsten/"
xsi:noNamespaceSchemaLocation="test1.xsd">
<identifier scheme="overheid:Informatietype">vragens</identifier>
</test>
When set to true, an error is thrown to the output.
Error : Pipeline failed: err:XC0054: null It is a dynamic error if the assert-valid option is true and any Schematron assertions fail.
java -cp /Applications/calabash-0.9.3/lib/calabash.jar:
/Applications/saxonsa9-1-0-5j/saxon9sa.jar:
/Applications/saxonsa9-1-0-5j/saxon9-s9api.jar:
/Applications/msv-20080213/msv.jar:
/Applications/msv-20080213/isorelax.jar:
/Applications/saxonsa9-1-0-1j/
com.xmlcalabash.drivers.Main -a
-isource=/Users/paul/Desktop/R&D/calabash/test.xml
-oreport=/Users/paul/Desktop/R&D/calabash/report.xml
/Users/paul/Desktop/R&D/calabash/test.xpl
The report generated by schematron and piped to "report.xml".![]()
sometimes it is needed to pass parameters to the schematron validator. In my case I need to pass allow-foreign 'true'.
This is done by adding element 'with-param'
<validate-with-schematron name="schematron" assert-valid="true">
<input port="schema">
<document href="test1.sch"/>
</input>
<with-param name="allow-foreign" select="'true'"/>
</validate-with-schematron>
Comments