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
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
Sample Saxon Applications
| Introduction
| Knight's Tour
» | JAXP Transformation Examples
| SaxonServlet
| The Book List Stylesheet
| Shakespeare Example
| The Bible
| JDOM Example
| Example applications for .NET
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# 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/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