Using external variables
The XML API allows you to access external variables from
XPath and XQuery expressions as well a stylesheet parameters from
XSLT stylesheets.
Using external functions
The XML API allows you to use external functions with XPath,
XQuery, and XSLT.