Skip to content

Instantly share code, notes, and snippets.

@dmj
Created February 26, 2023 10:49
Show Gist options
  • Save dmj/d15b9911a1338e68f363614cf14ea49b to your computer and use it in GitHub Desktop.
Save dmj/d15b9911a1338e68f363614cf14ea49b to your computer and use it in GitHub Desktop.
<project name="Test" basedir="." default="build">
<taskdef name="schematron" classname="name.dmaus.schxslt.ant.Task" classpath="target/ant-schxslt-1.9.5.jar"/>
<target name="build">
<schematron schema="schema.sch" file="document.xml" report="report.xml"/>
</target>
</project>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt3">
<sch:pattern>
<sch:rule context="*">
<sch:assert test="false()"/>
</sch:rule>
</sch:pattern>
</sch:schema>
@sydb
Copy link

sydb commented Feb 27, 2023

Ah! Fixed that last one. Martin had warned me you sometimes need to specify fork="true" when calling Saxon via in ant. Sigh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment