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

Template with built-in template rules for namespaces gives and assert

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CurrentCVS
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      all

      Description

      Stylesheet:
      <xsl:template match="/">
      <out>
      <xsl:apply-templates select="//namespace::*"/>
      </out>
      </xsl:template>

      and an input document:
      <?xml version="1.0"?>
      <doc xmlns="default.uri">
      <!-Comment 1->
      <item xmlns:one="http://one.org" xmlns:two="http://two.org">
      <inner>Some text <!-Comment 3->
      <sub-inner xmlns:one="http://example.org"/>
      </inner>
      </item>
      <item/>
      <item></item>
      </doc>

      Gives :
      Assertion failed: DOMServices::isNamespaceDeclaration(static_cast<const XalanAtt
      r&>(theNode)) == false, file \src\xalanc\Xslt\Stylesheet.cpp, line 1093

        Attachments

        1. patch.diff
          2 kB
          Dmitry Hayes

          Activity

            People

            • Assignee:
              dmitryh Dmitry Hayes
              Reporter:
              dmitryh Dmitry Hayes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: