[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

Subject: Re: Can I pass DOM from the Xalan XSLT processer to a Java object?
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Mon, 16 Jun 2003 09:42:37 -0400
pass processer download



> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.