[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to