Sample Saxon applications
Saxonica provides an additional resources download which contains various sample XML
resources, and several sample applications. The download file is named
saxon-resources-11.zip
, and is separate from the software download. It is
available from Saxonica downloads. Unzip the contents of
this file into the same directory as the Saxon software. The sample applications are found
in the directory /samples
.
The saxon-resources
download contains various example XML files, stylesheets,
queries, and schemas - in particular for the Book list,
Knight's tour, Shakespeare, and Bible
examples. Also provided are a number of sample Java and .NET programs which demonstrate ways
of using the Saxon APIs (see the samples/java
and samples/cs
directories). Many of the examples in the sample programs use the XML resources as sample
data.
The use of some of these sample applications is described in this section of the documentation:
- Shakespeare XPath sample application
- S9API examples
- JAXP transformation examples
- JDOM2 example
- SaxonCS API examples for .NET
- Saxon servlet
Information about some of the other sample applications is documented elsewhere:
- see JAXP XPath API for details on
the
ApplyXPathJAXP.java
sample (enhanced version of JAXP 1.3 sample) - see Invoking XQuery using the XQJ
API for information on the
XQJExamples.java
sample - see Schema validation
using JAXP for information on the
QuickValidator.java
,SchemaValidatorExample.java
, andSchemaValidatorHandlerExample.java
samples which demonstrate the use of JAXP validation APIs