XQuery 4.0 implementation

See also the changes for XPath 4.0, which apply equally to XQuery.

The syntax of item type declarations is now declare type rather than declare item-type.

In a try/catch expression, the variable err:map is available within the catch clause.

4.0 Features not yet implemented

Here is a list of some of the features in the 4.0 specifications that have NOT yet been implemented. Please check the QT4 GitHub project (https://github.com/qt4cg/qtspecs) for the latest status: Pull Requests are labeled "In Saxon13" when they have been implemented.