Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-625

Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.10
    • CurrentCVS
    • XPathC
    • None
    • winxpsp2

    Description

      There is a spurious (though apparently harmless) assert failure in XPath::findNodeSet() when compiled in Debug mode
      if an expression contains an empty node-set enclosed in parenthesis, as in the following stylesheet:

      <?xml version="1.0" encoding = "ISO-8859-1"?>
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
      <xsl:variable name="empty-nodeset" select="/.."/>
      <xsl:variable name="foo" select="($empty-nodeset)/@bar"/>
      <xsl:value-of select="count($foo)"/>
      </xsl:template>
      </xsl:stylesheet>

      Best regards,
      Alain Le Guennec.

      Attachments

        1. patch.diff
          2 kB
          David N Bertoni
        2. nonemptynodeset.xsl
          0.3 kB
          David N Bertoni
        3. nonemptynodeset.xml
          0.0 kB
          David N Bertoni
        4. assertemptynodeset.xslt
          0.3 kB
          Alain Le Guennec

        Activity

          People

            dbertoni David N Bertoni
            aleguenn@free.fr Alain Le Guennec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: