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

xsl:element adds namespace nodes it should not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.7.1
    • None
    • None
    • Operating System: Other
      Platform: All
    • 20920

    Description

      xsl:element adds namespace nodes as if it were a literal result element. This
      is not correct. The following namespace conformances test are broken because
      they rely on this behavior:

      namespace55
      namespace62
      namespace68
      namespace75
      namespace80
      namespace81
      namespace82
      namespace84
      namespace90
      namespace91
      namespace92
      namespace93
      namespace94
      namespace96
      namespace97
      namespace100

      I have patched Xalan-C, so it would be great if we could get these conformance
      tests fixed ASAP.

      Here is a patch for Xalan-J:

      cvs z9 diff ElemElement.java (in directory V:\xml
      xalan\java\src\org\apache\xalan\templates)
      Index: ElemElement.java
      ===================================================================
      RCS file: /home/cvs/xml-
      xalan/java/src/org/apache/xalan/templates/ElemElement.java,v
      retrieving revision 1.32
      diff -r1.32 ElemElement.java
      401,405d400
      < // Add namespace declarations.
      < // Bugzilla 13414: do not startPrefixMapping on 'prefix'
      < // as it is handled below
      < executeNSDecls(transformer, prefix);
      <
      430,432d424
      < // Bugzilla 13414: do not endPrefixMapping on 'prefix'
      < // as it is handled above
      < unexecuteNSDecls(transformer, prefix);

      Attachments

        Issue Links

          Activity

            People

              zongaro@ca.ibm.com Henry Zongaro
              david_n_bertoni@lotus.com David Bertoni
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: