Upgrading to BaseX 14
This page lists the changes in BaseX 14 that may require adjustments to existing applications.
Java Bindings
In Java classes that extend QueryModule, the queryContext and staticContext variables have been replaced with the methods queryContext() and staticContext(), which return the contexts of the current call. See Java Bindings for details.
XQuery
$err:map now contains all properties, including those without a value. Use exists($err:map?value) instead of map:contains($err:map, 'value').
Modules
Functions that return maps with a fixed structure now return records, which contain all fields, including those without a value: archive:options, prof:track and xslt:transform-report. Use exists($report?error) instead of map:contains($report, 'error').
Mail Module
Errors raised by mail:send are now assigned to the module namespace: catch mail:* instead of basex:error. Connections are stricter: port is respected with ssl, tls requires STARTTLS, the server identity is checked, and user requires password.
SFTP Module
Errors raised by the SFTP Module are now assigned to the module namespace: catch sftp:* instead of basex:error. In addition, symbolic links are followed, and sftp:list no longer returns . and ...