Functions, operators, and data types for XPath 4.0

A second $position argument is available on many function callbacks, for example those on every, filter, for-each, index-where, some.

Comments (between '#' characters) are allowed in regular expressions if the 'c' flag is set. A '#' character can be escaped as \# or [#]. (PR 1022)

The following functions are new in 4.0 (some of these were already implemented in Saxon 12):

The following functions have been significantly extended in 4.0. Again, a few of the changes might have already been implemented in Saxon 12:

4.0 Functions not yet (fully) 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.