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

Problem with namespaces in ToXMLStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • Serialization
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • PatchAvailable
    • fp3

    Description

      There is a problem in ToXMLStream (org.apache.xml.serializer.ToXMLStream) if
      there is an attribute of a namespace that is never used before, the
      namespace is never defined in this case. As attachment you can find a small
      test program that demonstrates the problem and a patch file that solves the
      problem. I am not sure if it is the patch is the way that the problem needs
      to be solved, but it seems to works. Can the patch be applied on the CVS tree? Or can
      the problem be solved on the CVS in an other way? If you need more
      information please feel free to ask.

      Attachments

        1. TreeWalker.patch.txt
          11 kB
          Brian Minchau
        2. Test.java
          0.9 kB
          Nick Van den Bleeken
        3. Xalan_ToStream.patch
          0.7 kB
          Nick Van den Bleeken

        Activity

          People

            minchau@ca.ibm.com Brian Minchau
            nvdbleek Nick Van den Bleeken
            Henry Zongaro Henry Zongaro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: