|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Can I pass DOM from the Xalan XSLT processer to a
> Can I pass DOM from the Xalan XSLT processer to a Java object? Sure. Just define the extension function so it expects Node (or a subclass thereof), NodeList, or NodeIterator. See http://xml.apache.org/xalan-j/extensions.html#ext-functions and/or some of the samples (eg, the MyCounter example accepts an Element as one of its arguments). >But when I call the NodeIterator methods to get a Node such as getRoot(), >or nextNode() NullPointers are thrown. Shouldn't be happening, unless the value you're actually passing in is empty, or has a value that can't be cast appropriately. If you really think you've found a Xalan bug, post a complete sample that demonstrates the problem (including the extension function!) in the Xalan BugZilla databata. If you think it might be in your code, you might want to post the question (again, including the missing extension function) into Xalan's own mailing list. ______________________________________ 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








