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]

Reply via email to