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

# Java API changes

A process has started of identifying all the Java classes and methods that are considered to form Saxon's public API. These classes and methods are identified with the tag "since 8.4" in the JavaDoc. Every effort will be made in the future to avoid gratuitous changes to these interfaces in future releases. However, there is no absolute guarantee of backwards compatibility, given that the W3C language specifications are still subject to change.

The `SequenceIterator` specification has been tightened-up to define the results returned by the `current()` and `position()` methods before the first item has been read, and after the `next()` method has returned null to indicate the end of the sequence. In addition, it is now specified that further calls on `next()` should continue to return null: previously this happened for some iterators, while others threw an exception. Existing implementations of `SequenceIterator` have been changed to conform to these tighter rules. There were a number of places in the Saxon code that relied on the `current()` function when applied to a `SingletonIterator` returning the same result irrespective of the state of the iterator. This is no longer the case: before `next()` is called for the first time, and after `next()` is called for the second time, the `current()` method on a `SingletonIterator` now returns null.

In the XQuery API, the `QueryProcessor` class, which has been deprecated since Saxon 8.1, is now withdrawn. All its methods are available on the `StaticQueryContext` class.

A user-defined `StaticQueryContext` is no longer modified by Saxon when a query is compiled. Instead, Saxon makes a copy for its internal use. This means that the same `StaticQueryContext` object may now be used to define multiple queries, in series or in parallel threads. A consequence of this change is that it is no longer possible to obtain information about the query, for example the names of the functions that it declares, from the original `StaticQueryContext`. However, the modified copy of the `StaticQueryContext` is available via a method on the `XQueryExpression` object.

The API for defining extension instructions in XSLT has changed slightly: various methods are now defined to throw an `XPathException` rather than a `TransformerConfigurationException`. This change was made to enable error codes to be associated with all error conditions: error codes can be held in an `XPathException`, but not in a `TransformerConfigurationException`.

Next