Thanks, I just checked in a fix for this.

Dave



                                                                                       
                           
                      Matt Leinhos                                                     
                           
                      <matt@granularit         To:      <[EMAIL PROTECTED]>     
                           
                      y.com>                   cc:      (bcc: David N 
Bertoni/CAM/Lotus)                          
                                               Subject: Re: Xalan C crashing on XML 
comments                      
                      08/07/2001 01:00                                                 
                           
                      PM                                                               
                           
                      Please respond                                                   
                           
                      to xalan-dev                                                     
                           
                                                                                       
                           
                                                                                       
                           



sure. it's the assertion for getting the root element:

matt@pestilence:~/xml_support/xml-xalan-1_1-linux/c/bin> ./XPathWrapper
/home/matt/public_html/xml/weird2.xml '/' '//*'

XPathWrapper:
/home/stevea/xml-xalan/c/samples/XPathWrapper/XPathWrapper.cpp:112: class
vector<vector<char,__default_alloc_template<true,0>
>,__default_alloc_template<true,0> > XPathWrapperImpl::evaluate(const
class CharVectorType &, const class CharVectorType &, const class
CharVectorType &): Assertion `rootElem != 0' failed.
Aborted (core dumped)

which corresponds with
XPathWrapper.cpp:112:
assert(rootElem != 0);

matt


 On Aug 7, [EMAIL PROTECTED] wrote:  -----------------

>
>It's hard to say without knowing what the assertion is.  Can you post the
>text of the assertion?
>
>Dave
>
>
>
>
>                      Matt Leinhos
>                      <matt@granularit         To:
<[EMAIL PROTECTED]>
>                      y.com>                   cc:      (bcc: David N
Bertoni/CAM/Lotus)
>                                               Subject: Xalan C crashing
on XML comments
>                      08/07/2001 11:24
>                      AM
>                      Please respond
>                      to xalan-dev
>
>
>
>
>
>Hello,
>
>While working with Xalan C 1.1 on Redhat Linux 6.1, I discovered that the
>following document causes the XPathWrapper to die on an assertion:
>
>*********************************
><?xml version="1.0" encoding="iso-8859-1"?>
>
><!--<?xml-stylesheet type="text/xml" href="test.xsl"?><?xml-stylesheet
>type="text/xml" href="testNumberTwo.xsl"?>-->
>
><root>
></root>
>********************************
>
>
>However, this document passes fine:
>*********************************
><?xml version="1.0" encoding="iso-8859-1"?>
>
><root>
></root>
>*********************************
>
>I therefore conclude that the Xalan parser is reading and parsing
>comments in a way that can cause it to give incorrect results.
>
>I'm using '/' for my context, and '//*' for the expression, as args to
>XPathWrapper (I don't think the arguments will change this behavior).
>
>Any ideas? What's going on?
>
>Thank you for your time!
>Matt
>
>--
>Matt Leinhos
>[EMAIL PROTECTED]
>
>"What's that you say, Mrs. Robinson? Joltin' Joe has left and gone away."
>  -- Simon and Garfunkel
>
>
>
>
>

--
Matt Leinhos
[EMAIL PROTECTED]

"What's that you say, Mrs. Robinson? Joltin' Joe has left and gone away."
  -- Simon and Garfunkel





Reply via email to