You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Nick Van den Bleeken (JIRA)" <xa...@xml.apache.org> on 2004/11/08 20:48:32 UTC

[jira] Created: (XALANJ-1985) Problem with namespaces in ToXMLStream

Problem with namespaces in ToXMLStream
--------------------------------------

         Key: XALANJ-1985
         URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
     Project: XalanJ2
        Type: Bug
  Components: Serialization  
    Reporter: Nick Van den Bleeken


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=history ]

Brian Minchau updated XALANJ-1985:
----------------------------------

    Xalan-keywords: PatchAvailable  (was: ToXMLStream)

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-1985?page=comments#action_12319286 ] 

Brian Minchau commented on XALANJ-1985:
---------------------------------------

Nick this issue is now fixed in the Xalan-J 2.7 release. As the issue reporter, please confirm so that we can close this issue.

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://issues.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>     Assignee: Brian Minchau
>      Fix For: 2.7
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=history ]

Brian Minchau updated XALANJ-1985:
----------------------------------

    Attachment: TreeWalker.patch.txt

Attaching TreeWalker.patch.txt a patch to the serializer's TreeWalker and Xalan's TransformerIdentityImpl.

I prefer this fix because it makes only the DOM user's pay the performance hit of checking that the prefix for all attributes has its namespace node declared. A patch to ToStream hits virtually all users.  This performance hit is mitigated in the patch by NOT making the final endPrefixMapping() calls when a node ends if the underlying ContentHandler is a org.apache.xml.serializer.Serializer.


> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1985?page=comments#action_59004 ]
     
Brian Minchau commented on XALANJ-1985:
---------------------------------------

The testcase sets this attribute in the DOM:
houseEl.setAttributeNS(
  "http://joske.mydomain/bla", 
  "jo:ta", 
  "blabla");

Without the fix the serialized DOM produces:
  <house jo:ta="blabla"/>
except that the prefix "jo" is not mapped to the URI "http://joske.mydomain/bla". With the patch to the serializer's TreeWalker the same serialized element is:
  <house
     xmlns:jo="http://joske.mydomain/bla"
     jo:ta="blabla"/>



> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://issues.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>     Assignee: Brian Minchau
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1985?page=history ]
     
Brian Minchau resolved XALANJ-1985:
-----------------------------------

     Resolution: Fixed
    Fix Version: CurrentCVS

Patch committed to CVS HEAD branch.

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://issues.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>     Assignee: Brian Minchau
>      Fix For: CurrentCVS
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=comments#action_55243 ]
     
Brian Minchau commented on XALANJ-1985:
---------------------------------------

Nick,
your code is in error in these three ways. 

1) You shouldn't mix namespace aware DOM methods with ones that aren't namespace aware. You have used createElement() which is not namespace aware with setAttributeNS() that is namespace aware. 

2) You have not set the document builder factory as namespace aware

3) Though not an error, you should be using the public APIs to get a serializer, not "new ToXMLStream()".

The "correct" Java program would look like this:

import java.io.ByteArrayOutputStream;
import javax.xml.parsers.DocumentBuilderFactory;

import org.apache.xml.serializer.DOMSerializer;
import org.apache.xml.serializer.OutputPropertiesFactory;
import org.apache.xml.serializer.Serializer;
import org.apache.xml.serializer.SerializerFactory;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Bug1985
{   
    public static void main(String[] args) throws Exception
    {
        // Create the document factory and make it namespace aware
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        dbf.setNamespaceAware(true);        
        Document document = dbf.newDocumentBuilder().newDocument();
        
        // Note the createElementNS not createElement calls
        document.appendChild(document.createElementNS(null,"joske"));
        Element houseEl = document.createElementNS(null,"house");        
        houseEl.setAttributeNS("http://joske.mydomain/bla", "jo:ta", "blabla");
        document.getDocumentElement().appendChild(houseEl);
        
        // Using public APIs to create the serializer
        java.util.Properties xmlProps =
        OutputPropertiesFactory.getDefaultMethodProperties("xml");
        Serializer ser =
            SerializerFactory.getSerializer(xmlProps);

        // Serialize the DOM
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ser.setOutputStream(out);
        DOMSerializer serializer = ser.asDOMSerializer();
        serializer.serialize(document);
        System.out.println(out.toString());
    }
}

Unfortunately the output is still the same, the prefix jo is seen in the output, but there is no attribute declaring the prefix to URI mapping, that is there is no xmlns:jo="http://joske.mydomain/bla" attribute.

I've tracked this down to an issue with the document factory (Xerces) rather than Xalan. A newer Xerces will have the required fix. Thanks for you patch, but the fix is in Xerces.

I'll probably be moving this issue to the Xerces queue shortly.

Regards,
Brian Minchau

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1985?page=all ]

Brian Minchau updated XALANJ-1985:
----------------------------------

    Fix Version: 2.7
                     (was: CurrentCVS)

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://issues.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>     Assignee: Brian Minchau
>      Fix For: 2.7
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Nick Van den Bleeken (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=history ]

Nick Van den Bleeken updated XALANJ-1985:
-----------------------------------------

    Attachment: Xalan_ToStream.patch

Patch that seems to solves the problem

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Assigned: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1985?page=history ]

Brian Minchau reassigned XALANJ-1985:
-------------------------------------

    Assign To: Brian Minchau

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://issues.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>     Assignee: Brian Minchau
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Nick Van den Bleeken (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=history ]

Nick Van den Bleeken updated XALANJ-1985:
-----------------------------------------

    Attachment: Test.java

Test program to show the prolem

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=comments#action_55596 ]
     
Henry Zongaro commented on XALANJ-1985:
---------------------------------------

I've reviewed Brian's TreeWalker.patch.txt, and it looks correct to me.

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1985?page=comments#action_55246 ]
     
Brian Minchau commented on XALANJ-1985:
---------------------------------------

Nick,
I've commented too soon on this being a Xerces issue.

I see an ensurePrefixIsDeclared() call in ToXMLStream, but only for the element name, not for the attribute names. So in that sense your fix looks good.  I'm worried about performance, but things need to be correct too.

Another possible spot for a fix is in TreeWalker, which walks the DOM and calls the serializer with SAX events. The latest code in CVS for the serializer has TreeWalker inside the serializer package, so it doesn't have to use pure SAX calls, but can use SAX-like calls.

This issue need more thought (probably by myself).

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1985) Problem with namespaces in ToXMLStream

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1985?page=history ]

Brian Minchau updated XALANJ-1985:
----------------------------------

          reviewer: zongaro@ca.ibm.com
    target-release: 11080
      fix-priority: fp3

> Problem with namespaces in ToXMLStream
> --------------------------------------
>
>          Key: XALANJ-1985
>          URL: http://issues.apache.org/jira/browse/XALANJ-1985
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: Nick Van den Bleeken
>  Attachments: Test.java, TreeWalker.patch.txt, Xalan_ToStream.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org