You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/02/11 07:50:12 UTC

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

     [ 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