Apache Ant/Running Saxon

Motivation
You want to have an Apache Ant task that runs the Saxon XSLT transform.

Method
Download the Saxon jar file. Put the saxon.jar file in a lib folder. Run the following test.

Build File
The following is how Saxon is invoked from Apache Ant.

Note that if you are running in Eclipse you will have to go to the "Preferences" menu and add the saxon9.jar file to Ant/Runtime/Ant Home Entries. Just click the "Add JARs" and add the saxon9jar file the end of this list.

XSLT Version Check
check-version.xsl:

Or if you are generating a web page:

Results for XALAN
Results for Apache XALAN 1.0  Vendor: Apache Software Foundation (Xalan XSLT) Vendor URL: http://xml.apache.org/xalan-j

Results for Saxon
Version: 2.0 Vendor: SAXON 9.1.0.7 from Saxonica Vendor URL: http://www.saxonica.com/