What is Saxon?
The Saxon package is a collection of tools for processing XML documents. The main components are:
An XSLT processor, which can be used from the command line, or invoked from an application, using a supplied API. Saxon supports the XSLT 2.0 Recommendation, and the commercial version also supports nearly all features of the XSLT 3.0 Candidate Recommendation dated 19 November 2015. Saxon can also be used to run XSLT 1.0 stylesheets.
An XPath processor accessible to applications via a supplied API. This supports XPath 2.0, XPath 3.0, and the Candidate Recommendation for XPath 3.1. It can also be used in backwards-compatibility mode to evaluate XPath 1.0 expressions.
An XQuery processor that can be used from the command line, or invoked from an application by use of a supplied API. This supports XQuery 1.0, XQuery 3.0, and the Candidate Recommendation for XQuery 3.1. It includes support for the XQuery Update 1.0 Recommendation, but not for later versions of XQuery Update.
An XML Schema Processor. This supports both XSD 1.0 and XSD 1.1. This can be used on its own to validate a schema for correctness, or to validate a source document against the definitions in a schema. It is also used to support the schema-aware functionality of the XSLT and XQuery processors. Like the other tools, it can be run from the command line, or invoked from an application.
On the Java platform, when using XSLT, XPath, or XML schema validation, Saxon offers a choice of APIs. If you need portability across different vendor's tools, you can use the JAXP API for XSLT, XPath, and XML Schema processing, and the XQJ interface for XQuery. On the other hand, if you want a more integrated and complete API offering access to all Saxon's facilities, the s9api interface is recommended. You can also dive down deeper into the Saxon internals if you need to: there has been no particular attempt to make interfaces private, and all public interfaces are documented in the JavaDoc. Clearly, the deeper you go, the greater the risk of interfaces changing in future releases.
On the .NET platform, Saxon offers an API that enables close integration with other services available from .NET, notably the XML-related classes in the
System.Xmlnamespace. It isn't possible to use Saxon as a transparent plug-in replacement for the
System.Xml.Xslprocessor, because the API for the Microsoft engine using concrete classes rather than abstract interfaces. However, it is possible to use it as a functional replacement with minor changes to your application code.
Full details of Saxon's conformance to the specifications are provided in the Conformance section.
As well as features standardized by W3C, Saxon provides an extensive library of extensions, all implemented in conformance with the XSLT and XQuery Recommendations to ensure that portable stylesheets and queries can be written. These include the EXSLT extension libraries common, sets, math, and dates-and-times, and the EXPath modules binary, file, and archive. Many of these extensions were pioneered in Saxon and have since become available in other products.
These extension libraries in most cases require Saxon-PE or higher, and in some cases require Saxon-EE.