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

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

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


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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667548#action_12667548 ] 

Howard M. Lewis Ship commented on TAP5-457:
-------------------------------------------

This is another useful reference within the spec:

http://www.w3.org/TR/2006/REC-xml-names-20060816/#xmlReserved

> 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
>            Assignee: Howard M. Lewis Ship
>            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.


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

Posted by "Folke Behrens (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-457:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> 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
>            Assignee: Howard M. Lewis Ship
>            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.


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

Posted by "Folke Behrens (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667548#action_12667548 ] 

Howard M. Lewis Ship commented on TAP5-457:
-------------------------------------------

This is another useful reference within the spec:

http://www.w3.org/TR/2006/REC-xml-names-20060816/#xmlReserved

> 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
>            Assignee: Howard M. Lewis Ship
>            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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-457:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> 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
>            Assignee: Howard M. Lewis Ship
>            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.


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

Posted by "Folke Behrens (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-457.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.1.0.0

> 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
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>             Fix For: 5.1.0.0
>
>         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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-457.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.1.0.0

> 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
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>             Fix For: 5.1.0.0
>
>         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.


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

Posted by "Folke Behrens (JIRA)" <ji...@apache.org>.
     [ 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.