SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Standards Conformance
Extensibility
Saxon Extensions
Sample Saxon Applications
| Introduction
| Knight's Tour
» | JAXP Transformation Examples
| SaxonServlet
| The Book List Stylesheet
| Shakespeare Example
| The Bible
| JDOM Example
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
XSLT Patterns

# JAXP Transformation Examples

Saxon supports the Java JAXP Transformation API, also 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/trax
java 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.

Next