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

LSSerializerImpl adds redundant xmlns:xml namespace bindings.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Serialization
    • None
    • PatchAvailable

    Description

      We switched over when the xerces serializers were deprecated but found tha the xalan serializer insists on adding bindings for the xml namespace. I (and the xerces serializer) believe that this is not necessary - the xml namespace is built-in.

      This resulted in our XML being littered with thousands of needless xmlns:xml=... attributes. We've worked around this by making sure we put one on the document root. I'd like to see these attributes not serialized.

      I'll attach a test showing this behviour shortly. It shows that xerces didn't add them but xalan does.

      Attachments

        1. boundxmlprefix.xml
          0.1 kB
          Chris Simmons
        2. patch3092.txt
          0.7 kB
          Chris Simmons
        3. TestSerializer.java
          1 kB
          Chris Simmons

        Activity

          People

            Unassigned Unassigned
            cps@decisionsoft.com Chris Simmons
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: