A little more information. For the heck of it, we downloaded the D10 build,
and (ignoring the many things that it broke!) it now passes a
org.apache.xml.dtm.ref.DTMNodeList instance in both cases, but
unfortunately, the NodeList is garbage (getLength() returns only one node,
instead of the 19 expected).
- Rick
-----Original Message-----
From: Rick Bullotta [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 4:28 PM
To: [EMAIL PROTECTED]
Subject: Extension Function Problem/Incompatible DocumentFragmentImpl
implementations?
We're using a Java extension function with XALAN, and it exhibits strange
behavior in certain execution contexts. When the Transformer processes a
DOMSource input, all works fine. When the same stylesheet is processed by
feeding a TransformerHandler SAX events, it fails attempting to call the
getLength() method on an instance of
org.apache.xalan.stree.DocumentFragmentImpl, with a
"java.lang.RuntimeException: Function not supported!" error.
The extension function's method signature expects a NodeList as input. It
appears that in the working scenario, the function is passed an instance of
a org.apache.xerces.dom.DocumentFragmentImpl object, whereas in the failure
case, it is passed an instance of
org.apache.xalan.stree.DocumentFragmentImpl. Any known issues/workarounds?
- Rick Bullotta
CTO
Lighthammer Software