xsl-list
[Top] [All Lists]

RE: [xsl] Using a Java Function in XSLT

2007-10-25 03:50:58
What kind of object is passed if I want to pass a the current 
node that matches the template to the extension function? 
Currently the existing java class that i plan on using 
expects a File object.

In the case of Saxon, the object will be an instance of Saxon's NodeInfo
interface, unless the actual tree is a JDOM/DOM/XOM/DOM4J tree and the
function expects a JDOM/DOM/XOM/DOM4J node, in which case the underlying
node will be passed.

If you're expecting a File, then you're probably expecting to parse the XML.
That's obviuosly unnecessary in this environment as the XML is already in
tree form.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>