SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
| Introduction
| Running XQuery from the Command Line
| Invoking XQuery using the XQJ API
| Invoking XQuery from an application
| Calling XQuery Functions from Java
| Result Format
| Compiling Queries to Java code
| Extensibility
| Extensions
» | Use Cases
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# Use Cases

Saxon runs all the XQuery Use Cases.

The relevant queries (some of which have been corrected from those published by W3C) are included in the Saxon distribution (folder `use-cases`) together with batch scripts for running them. A few additional use cases have been added to show features that would otherwise not be exercised. A separate script is available for running the STRONG use cases since these require Saxon-SA.

Also included in the distribution is a query `samples/query/tour.xq`. This is a query that generates a knight's tour of the chessboard. It is written as a demonstration of recursive functional programming in XQuery. It requires no input document. You need to supply a parameter on the command line indicating the square where the knight should start, for example `start=h8`. The output is an HTML document.