Skip navigation links

Package com.saxonica.xqj

This package contains an implementation of the XQJ specification defined in JSR 225.

See: Description

Package com.saxonica.xqj Description

This package contains an implementation of the XQJ specification defined in JSR 225. This API is not yet part of the Java Standard Edition platform, but it is widely supported by a variety of Java-based XQuery engines.

Saxon's implementation of the XQDataSource class is net.sf.saxon.xqj.SaxonXQDataSource. Generally, this is the only class that applications need to access directly (all other access can be done by using standard XQJ interfaces). However, if there is a need to mix XQuery access with other Saxon functionality such as schema processing, then it is often useful to cast the XQJ objects to their underlying Saxon implementation classes, which make additional methods available.

In general it is not possible to mix Saxon implementation classes of the XQJ interface with implementation classes from other vendors. That is, if an interface specifies that a value of an XQJ type must be passed as an argument, Saxon in general requires the value to belong to a Saxon implementation of that interface.

Although this implementation of XQJ is issued under the open source Mozilla Public License, users should be aware of the terms and conditions included in the XQJ specification (JSR 225) which may (under some interpretations) restrict the right to make modifications. Because the terms and conditions for the XQJ specification do not comply with some definitions of "open source", the XQJ module is not included in the standard Saxon-HE jar files, but is issued separately.

Skip navigation links

Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.