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 21:55:59 UTC

[jira] Updated: (TAP5-457) Illegal prefix for XML namespace

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

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

       Priority: Critical  (was: Major)
    Description: 
Tapestry replaces the default XML namespace alias "xml" with "ns0" and then explicitly defines "ns0" as XML namespace. This is illegal and XHTML validators like W3C's one do not accept this as valid.

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">


  was:
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">


        Summary: Illegal prefix for XML namespace  (was: XML namespace name gets redefined)

> Illegal prefix for XML namespace
> --------------------------------
>
>                 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
>            Priority: Critical
>         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 illegal and XHTML validators like W3C's one do not accept this as valid.
> 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.