You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Folke Behrens (JIRA)" <ji...@apache.org> on 2009/01/22 19:35:59 UTC

[jira] Updated: (TAP5-457) XML namespace name gets redefined

     [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Folke Behrens updated TAP5-457:
-------------------------------

    Attachment: Test.html
                xml-namespace-prefix.patch

Attached patch adds default namespace prefix mappings in org.apache.tapestry5.dom.Element.createNamespaceURIToNamespaceMap()
for XML namespaces as required in http://www.w3.org/TR/2006/REC-xml-names-20060816/#ns-decl - "Namespace constraint: Reserved Prefixes and Namespace Names."


> XML namespace name gets redefined
> ---------------------------------
>
>                 Key: TAP5-457
>                 URL: https://issues.apache.org/jira/browse/TAP5-457
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>         Attachments: Test.html, xml-namespace-prefix.patch
>
>
> Tapestry replaces the default XML namespace alias "xml" with "ns0" and then explicitly defines "ns0" as XML namespace. This is unnecessary and XHTML1 validators like W3C's one do not accept other namespace declarations.
> Template:
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-DE">
> Output becomes:
> <html ns0:lang="de-DE" xmlns="http://www.w3.org/1999/xhtml" xmlns:ns0="http://www.w3.org/XML/1998/namespace">

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