XQuery 3.0 Conformance
Saxon 9.4 implements nearly all the new features of the XPath 3.0 specification. At the time of writing the Working Groups are preparing a new Working Draft which is intended to have "Last Call" status; it is this working draft that has been used as the basis for this release.
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 that are fully implemented 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 XPath 3.0 as described in the XSLT 3.0 specification. This is true whether or not the XPath processor is being invoked in an XSLT context.
The main omissions are: function annotations other than private and public; annotations on inline functions; annotation assertions; some options for casting to union types (casting from string to a union type is fully supported).