Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
/ schxslt-ant Public archive

Ant task for Schematron validation with SchXslt

License

Notifications You must be signed in to change notification settings

schxslt/schxslt-ant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ant task for Schematron validation with SchXslt

SchXslt Ant is copyright (c) 2019,2020 by David Maus <[email protected]> and released under the terms of the MIT license.

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

Installing 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.

You can download the .jar from the list of releases or build it using the Maven build tool.

To create the .jar file from its sources clone this repository and run the Maven build tool.

git clone https://github.com/schxslt/schxslt-ant.git
cd schxslt-ant
mvn clean package

This creates the jar file inside the target directory.

Using SchXslt Ant

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-schxslt-1.4.jar"/>
  <target name="build">
    <schematron schema="schema.sch" file="document.xml" report="report.xml" phase="myPhase"/>
  </target>
</project>