Skip to content
Ant task for Schematron validation with SchXslt
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/name/dmaus/schxslt/ant
.gitignore
LICENSE
README.md
pom.xml

README.md

Ant task for Schematron validation with SchXslt

SchXslt Ant is copyright (c) 2019 by David Maus <dmaus@dmaus.name> and released under the terms of the MIT license.

This project implements a task for Apache Ant that performs Schematron validation with SchXslt.

Using SchXslt Ant

Download or compile the .jar file and define a new task using name.dmaus.schxslt.ant.Task as class name. The .jar contains the Java classes of a Schematron validation task as well as the SchXslt transformation stylesheets.

The task relies on a XSLT 2.0 processor to be registered as transformer factory implementation and uses Saxon if no other transformer is registered.

It supports the following options:

file Path to the file to be validated -
schema Path to the file containing the Schematron -
phase Validation phase #ALL
report Path to the file that the SVRL report should be written to

Example

<project name="Test" basedir="." default="build">
  <taskdef name="schematron" classname="name.dmaus.schxslt.ant.Task" classpath="/path/to/ant-schxsl-1.1.jar"/>
  <target name="build">
    <schematron schema="schema.sch" file="document.xml" report="report.xml" phase="myPhase"/>
  </target>
</project>
You can’t perform that action at this time.