Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > XML applications > Use the XML API to perform operations > Use external variables and functions
Use external functions
The XML API allows you to use external functions with XPath, XQuery, and XSLT.
We can define external functions when to use operations that are difficult or impossible to express directly by core functions defined in functions and operators, additional functions defined in the XSLT specification, constructor functions named after an atomic type, stylesheet functions defined using xsl:function declaration of XSLT, or user-defined functions in XQuery. Please note that external functions cannot be used to override built-in functions. For example, suppose you are using an external function, my:power(arg1 as xs:double, arg2 as xs:double), to calculate the value of the first argument raised to the power of the second argument; you could write a Java method taking two Java primitive double arguments that performs the calculation. The details of using external functions are presented in separate articles.
Procedure
- Use external functions with XPath.
- Use external functions with XQuery.
- Use external functions with XSLT.
Related
Use external functions with XPath
Use external functions with XQuery
Use external functions with XSLT