|
I used Sablotron, which luckily lets me get away with a few things that I shouldn't...
If you're using Xalan (which I assume you are from the error message), you'll need to include the xalan namespace, and wrap a
xalan:node-set(...)
function around where the XSLT uses 'result tree fragments' (most of the XSLT parameters and variables in the stylesheet). Similarly, if you're using xt or saxon, the functions are called xt:node-set or saxon:node-set.
For an example, see:
http://xml.apache.org/xalan-c/extensionslib.html#nodeset
|