XQuery 3.0 Conformance
Saxon 9.5 fully implements the XQuery 3.0 specification as defined in the Candidate Recommendation of 10 January 2013.
See also XPath 3.0 Conformance; all the new features implemented for XPath 3.0 are also available in XQuery 3.0.
Other new features in XQuery 3.0 include the following:
-
Group by clause in FLWOR expressions
-
Tumbling window and sliding window in FLWOR expressions
-
Count clause in FLWOR expressions
-
Outer joins, represented by the syntax
allowing empty
in a FLWOR expression -
Try/Catch expressions
-
Private functions and variables
-
Switch expressions
-
Computed namespace constructors
-
Output declarations to control serialization
-
Decimal format declarations to control use of the
format-number
function. -
Validation against a named type
-
Default values for external variables
Maps are implemented in XQuery 3.0 as described in the XSLT 3.0 specification.
For details of the function library supported, see .
Saxon acts either as an XQuery 1.0 or an XQuery 3.0 processor. Features in XQuery 3.0 are supported only if explicitly
requested. The request can be by specifying version 3.0 in the XQuery version declaration, or via the API, or on the command
line (-qversion:3.0
).