Sorry that I wasn't clearer. With the more recent APIs, the whole internal
workings of Xalan have changed to use the DTM. Basically, XNodeSet used to
have a null constructor as well as a constructor that took an Element as a
parameter. This interface has been changed. Currently, the XNodeSet
constructors only deal with the DTM manager, which I haven't been able to
fully understand.
I've always felt that passing an XNodeSet in as a transformation parameter
was on the edge of acceptable behavior and I know of no specification that
guaranteed that we could do it. With the change in interface and the various
javadoc comments that indicated that the implementation of the interface
might not be complete, made me wonder if this functionality was removed.
I include the snippets (repeated below) to illustrate what we were doing
with the old interface in hopes that someone would have suggestions on how
to do the same thin in the new interface.
Regards,
Kurt
Java snippet
DOMParser myParser = new DOMParser();
InputSource myInput = new InputSource("<name>World</name>");
myParser.parse(myInput);
Document myDoc = myParser.getDocument();
Element rootElement = myDoc.getDocumentElement();
...
transformer.setParameter( "input", new XNodeSet(rootElement) );
XSL Snippet
<xsl:apply-templates select="$input" />
-----Original Message-----
From: Shane Curcuru [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 6:43 PM
To: [EMAIL PROTECTED]
Subject: Re: XNodeSet with JDK 1.4 and Xalan-J 2.3.1
- What (specifically) goes wrong in the new environment? It's hard to
debug problems described just as "it doesn't work anymore".
- Search this or the xalan-dev mailing list for JDK 1.4 - there are a
bunch of separate issues with running under that JDK, since it includes
back-level versions of Xalan inside the JDK.
http://nagoya.apache.org/eyebrowse/ViewLists
http://marc.theaimsgroup.com/?l=xalan-j-users
=====
- Shane
<eof aka="mailto:[EMAIL PROTECTED]"
.sig="Du sublime au ridicule il n'y a qu'un pas." />
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com