Extensibility

The Saxon XQuery implementation allows you to call Java methods as external functions. The function does not need to be declared. Use a namespace declaration such as declare namespace math="java:java.lang.Math", and invoke the method as math:sqrt(2).

More details of this mechanism are found in Writing Extension Functions.

There are a number of XQuery specific extensions available, which are fully documented in Extensions: