I am attempting to convert some Xalan extension functions to work with
XSLTC.  I need the following functionality and wonder if someone can tell me
if it is possible.

1.  Pass an org.w3c.dom.NodeList param to an extension functions
2.  Conduct XPath queries within the extension function and return a
NodeList
3.  Call a non-static method on an object passed into the transformation as
a parameter

I tested NodeList params (#1 above), but get errors from the XSLTC compiler:

        Unable to resolve call to function 
'http://xml.apache.org/xslt/java:eval'

The function is declared as follows:

        public static String eval(org.w3c.dom.NodeList nodeList, String pattern)

It works with methods that don't have NodeList params, so I know I've got
everything declared correctly.

I noticed in FunctionCall.java, there are mappings declared from internal to
org.w3c.dom.NodeList.  However, when it is trying to resolve the function
mapping the internal param is of ReferenceType and this doesn't map to
anything.

...Brian

Reply via email to