Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1959

Failure to copy namespace nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6
    • None
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None

    Description

      Another OASIS test suite discrepancy. This time libxslt agrres with Xalan, but on reflection I think the test case is correct and Xalan and libxslt are wrong.

      The test case is:

      xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

      <!-- Purpose: Test case for bug 70935 -->

      <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes" indent="yes"/>

      <xsl:template match="/">
      <test><xsl:copy-of select="document('')/xsl:stylesheet/namespace::xsl"/></test>
      </xsl:template>

      </xsl:stylesheet>

      The expected output is:

      <test xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      </test>

      The actual output is

      <test>
      </test>

      The namespace node has not been copied.

      Attachments

        1. XALANJ-1959.patch
          0.2 kB
          Mukul Gandhi
        2. ElemCopyOf.java
          8 kB
          Mukul Gandhi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elharo@metalab.unc.edu elharo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: