This is a simple example which shows how to use extension
functions. I've created an extension function (see
SampleFunctionResolver.java)
which contains the implementation for a function called
"result-type". This function returns, as a
String, the type of the parameter which is passed as the
argument to the function.
Tips on usage:
- To use extension functions you make sure you declare
the namespace of the extension functions
- Make sure you add your FunctionResolver to the XSLTProcessor
Results:
The result type of test1 is: string
The result type of test2 is: boolean The
result type of test3 is: number