You are using an instance of the class XalanSourceTreeDOMSupport with the
Xerces DOM. This is incorrect. You need to use an instance of
XercesDOMSupport. If you look at the source code for testXSLT, you'll see
this very clearly.
Unless you really have a need to the Xerces DOM, I suggest you avoid it,
It's slow, there are many complications involved, and we will eventually
deprecate it.
Dave
Denis Gourlaouen
<denisgourlaouen To: Xalan Dev list
<[EMAIL PROTECTED]>
@yahoo.fr> cc: (bcc: David N Bertoni/CAM/Lotus)
Subject: Assertion failed while
transforming a DOM input source
06/01/2001 06:30
AM
Please respond
to xalan-dev
Hello,
I use xalan-C++ to transform a DOM input source (Xerces class).
I got the following assertion when i use the stylesheet 'identity.xsl',
whatever the DOM input is (including a document with an empty root
element) :
XalanSourceTree/XalanSourceTreeDOMSupport.cpp:143: bool
XalanSourceTreeDOMSupport::isNodeAfter (const XalanNode &, const
XalanNode &) const: Assertion `node1.isIndexed() == true &&
node1.isIndexed() == true' failed.
I've tried the same transformation with the "testXSLT" tool and other
stylesheet (identity2.xsl, which is another way of doing the same
transformation as 'identity.xsl') with the DOM input source : it works.
So, it seems that the problem is linked with the stylesheet
'identity.xsl' and the DOM input source.
Why does this assertion mean ?
(For me, the main purpose of an assertion is to have a message before a
crash, so i think this means that this is a bug)
Thanks
Denis Gourlaouen
PS: I use xalan v1.1 on Linux
(See attached file: identity.xsl)
(See attached file: identity2.xsl)
identity.xsl
identity2.xsl