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

"Default identity" transform not generating namespace declarations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • Other
    • None
    • Operating System: All
      Platform: All
    • 5779

    Description

      The current implementation of the DOMBuilder or the DOM serializer (I really
      don't know) has problems when serializing DOM nodes.
      Attached is a test class (called Test2) and an XML document (a.xml).
      The test class reads the document using a SAX Parser, and
      creates a DOM object. Then an inner child of the DOM is serialized
      to a new document called b.xml. As you can see, the resulting document
      has no namespace declarations! (However serializing the whole document a.xml
      works fine.)
      Either the used DOMBuilder doesn't set the namespace information correctly in
      the DOM or the serializer doesn't look up the namespace information from parent
      nodes.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--Test2.java
          2 kB
          Carsten Ziegeler
        2. ASF.LICENSE.NOT.GRANTED--Test2.java
          1.0 kB
          Joe Kesselman
        3. ASF.LICENSE.NOT.GRANTED--b.xml
          0.1 kB
          Carsten Ziegeler
        4. ASF.LICENSE.NOT.GRANTED--a.xml
          0.3 kB
          Carsten Ziegeler

        Issue Links

          Activity

            People

              keshlam@us.ibm.com Joe Kesselman
              cziegeler Carsten Ziegeler
              Votes:
              5 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: