Hmm, I believe we test for this case, but can you submit a bug report on
Bugzilla with a minimal stylesheet and input xml that reproduces the
problem?  We probably can't do much about it if it doesn't happen with our
current compiler.

   http://nagoya.apache.org/bugzilla/index.html

Thanks!

Dave



                                                                                       
                       
                    "Anthony                                                           
                       
                    Zawacki"             To:     [EMAIL PROTECTED]           
                       
                    <[EMAIL PROTECTED]        cc:     (bcc: David N Bertoni/CAM/Lotus)      
                       
                    m.com>               Subject:     Unsupported encoding causes 
segmentation fault (AIX     
                                         4.3)                                          
                       
                    04/25/2001                                                         
                       
                    03:29 PM                                                           
                       
                    Please                                                             
                       
                    respond to                                                         
                       
                    xerces-c-dev                                                       
                       
                                                                                       
                       
                                                                                       
                       



I am developing an application using xalan, and have run into a problem
(possible bug) in Xalan.

I found the following example on the internet, probably for Microsoft's
XSLT engine.  The encoding is set to ISO8859-1.  When I use XT to perform
the transformation, it returns an error that the encoding is unsupported.
When I use Xalan, I am getting a segmentation fault.  The fault occurs in
the vector operator bool routine.  This is called by StylesheetHandler.cpp,
line 1708.  Looking at the code, it is not clear why a segmentation fault
would occur, because StylesheetHandler has an assert guard.  I compiled
Xalan using Visual Age C++ 5.0 and I am using Visual Age's STL.

Since I have control of the XML and XSL, this bug will not impact me, I
plan to change the encoding to an appropriate value and continue my work.
However, I did search the buglist and didn't see any bugs (open or closed)
like this.  Are others using Xalan-C impacted by this problem, or is it a
ramification of using Visual Age's STL?

---Start of XML file---
<?xml version="1.0" encoding="ISO8859-1" ?>
<portfolio>
  <stock exchange="nyse">
    <name>zacx corp</name>
    <symbol>ZCXM</symbol>
    <price>28.875</price>
  </stock>
  <stock exchange="nasdaq">
    <name>zaffymat inc</name>
    <symbol>ZFFX</symbol>
    <price>92.250</price>
  </stock>
</portfolio>
---End of XML file---

---Start of XSL file---
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="/">
  <html>
  <body>
    <table border="2" bgcolor="yellow">
      <tr>
        <th>Symbol</th>
        <th>Name</th>
        <th>Price</th>
      </tr>
      <xsl:for-each select="portfolio/stock">
      <tr>
        <td><xsl:value-of select="symbol"/></td>
        <td><xsl:value-of select="name"/></td>
        <td><xsl:value-of select="price"/></td>
      </tr>
      </xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>
---End of XSL file---


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to