My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallationAndUsage  
How to install and use Probatron
Updated Jun 1, 2009 by ajsale...@gmail.com

Installation

  1. Ensure you have a Java runtime installed, version 1.4 or later. Runtimes may be downloaded e.g. from http://java.com.
  2. Download the binary distribution and unzip the file probatron.jar to a suitable location.
  3. Assuming you can invoke Java using the command java, at the command line type:
  4.    java -jar path/to/probatron.jar
You should see a copyright statement followed by this usage hint:
   usage: java org.probatron.Probatron [Schematron-schema] [XML-document]

Usage

  1. Pass a Schematron schema and an XML document to Probatron like so:
  2.    java -jar path/to/probatron.jar mySchema.sch myInstance.xml
The results of the process should appear at standard output and can be redirected in the usual ways. By default a plain-text report is emitted. Processing errors appear at standard error.

Configuration

System properties can be used to configure how the application behaves. Set a system property or properties like so:

   java -Dmy-system-property=value -jar probatron.jar ...

Available properties are set out in the table below.

PropertyValuesFunction
error-formatxml, textSwitches between plain-text output and SVRL report. The default value is text.
relaxng-schema-locationa URISwitches on validation against the RELAX NG schema at the specified location, resolved against the current working directory

Comment by charloui...@gmail.com, Jan 20, 2010

In the latest probatron.jar, it first expects the document.xml then the schematron.sch :

java -jar /path/to/probatron.jar myInstance.xml mySchema.sch

Sign in to add a comment
Powered by Google Project Hosting