SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
| Version 8.9 (2007-02-12)
» | Version 8.8 (2006-09-05)
| Version 8.7.3 (2006-06-13)
| Version 8.7.2 (2006-04-19)
| Version 8.7.1 (2006-04-13)
| Version 8.7 (2006-02-24)
| Version 8.6.1 (24 November 2005)
| Version 8.6 (3 November 2005)
| Version 8.5.1 (26 August 2005)
| Version 8.5 (2 August 2005)
| Version 8.4 (4 April 2005)
| Version 8.3 (11 February 2005)
| Version 8.2 (21 December 2004)
| Version 8.1.1 (8 October 2004)
| Version 8.1 (24 September 2004)
| Version 8.0 (1 June 2004)
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
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# Changes to XQuery API

Saxon now implements the early release draft of XQJ (dated May 2006). Note that this is a preliminary version of this API specification, and is subject to change. This interface, and its Saxon implementation, are provided in a separate JAR file saxon8-xqj.jar. It is dependent on some classes in JAXP 1.3, which means that it is simplest to use this with J2SE 5.0, although it can in principle work on the JDK 1.4 platform.

Although this is still a preliminary specification, there is likely to be increasing emphasis on the XQJ API in future releases at the expense of the current proprietary API for XQuery applications.

Areas where the implementation is known to be incomplete include:

- reporting of warnings;

- access to Saxon-specific configuration properties

Some extensions have also been implemented. Specifically, the code for mapping Java objects to XPath items will accept any JAXP Source object and return the corresponding document node, and it will also accept an XMLStreamReader (StAX parser) as the source of a document node.

Because it is required by XQJ, Saxon now provides the ability to read query and transformation results using the `XMLStreamReader` interface (also known as StAX).

Other XQuery changes

A new method is provided in `StaticQueryContext` to allow the static type of the context item to be specified. This information, if supplied, will be used when type-checking and optimizing the query, and an error will be reported at run-time if the actual context item does not conform to this type.

Next