You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Eric Wout van der Steen (JIRA)" <xa...@xml.apache.org> on 2009/11/20 09:22:40 UTC

[jira] Commented: (XALANJ-2409) LSSerializerImpl adds redundant xmlns:xml namespace bindings.

    [ https://issues.apache.org/jira/browse/XALANJ-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780478#action_12780478 ] 

Eric Wout van der Steen commented on XALANJ-2409:
-------------------------------------------------

We've just switched to Xalan 2.7.1 (from Xalan 2.7.0 with Xerces 2.7.1) and see the same effect.

> LSSerializerImpl adds redundant xmlns:xml namespace bindings.
> -------------------------------------------------------------
>
>                 Key: XALANJ-2409
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2409
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: Serialization
>            Reporter: Chris Simmons
>         Attachments: boundxmlprefix.xml, patch3092.txt, TestSerializer.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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