|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Returning a document fragment from Xalan extension
This might be a better question for Xalan's mailing list, and this may differ from Xalan-J to Xalan-XSLTC to Xalan-C, but... The return types from Xalan-j extension functions, and how they're interpreted, are described at http://xml.apache.org/xalan-j/extensions.html under "return values". If your extension passes back an object that implements org.w3c.dom.DocumentFragment, Xalan-J should iterpret it as a Result Tree Fragment. If you pass back other DOM types, they will be interpreted as Node Sets. In XSLT 1.0, Node Sets and Result Tree Fragments are different datatypes (though that distinction is expected to go away in XSLT 2.0, as "temporary trees" replace both). So depending on what you want to do with the returned value, you may need to use an extension function to convert one to the other. The EXSLT node-set() function is the closest thing to a portable solution currently available, and Xalan does support it, or you can use Xalan's own nodeset() function. See http://xml.apache.org/xalan-j/extensionslib.html#nodeset for some documentation. Hope that helps to get you pointed in the right direction... ______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "The world changed profoundly and unpredictably the day Tim Berners Lee got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








