JAXP Transformation Examples
This section applies to the Java platform only.
Saxon supports the Java JAXP Transformation API, originally known as TrAX (package javax.xml.transform) for invoking the XSLT stylesheet processor. This API is useful when you want to write your own Java applications that invoke Saxon XSLT transformations.
A sample program that illustrates many features of the TrAX interface (including Saxon-specific extensions) is included in the distribution as TraxExamples.java. Source XML and XSLT files for use with this program are included in the trax directory. To run the program, use the command:
cd $saxonhome/samples/traxjava TraxExamples
You can supply an argument to indicate which of the examples you want to run; see the source code for details. By default, they are all executed in turn.