Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.18
    • Fix Version/s: 5.1.0.0
    • Component/s: tapestry-core
    • Labels:
      None

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

      1. xml-namespace-prefix.patch
        0.8 kB
        Folke Behrens
      2. Test.html
        0.3 kB
        Folke Behrens

        Issue Links

          Activity

          Folke Behrens created issue -
          Hide
          Folke Behrens added a comment -

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

          Show
          Folke Behrens added a comment - 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."
          Folke Behrens made changes -
          Field Original Value New Value
          Attachment xml-namespace-prefix.patch [ 12398497 ]
          Attachment Test.html [ 12398498 ]
          Folke Behrens made changes -
          Link This issue is related to TAP5-290 [ TAP5-290 ]
          Folke Behrens made changes -
          Summary XML namespace name gets redefined Illegal prefix for XML namespace
          Priority Major [ 3 ] Critical [ 2 ]
          Description 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">
          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">
          Howard M. Lewis Ship made changes -
          Assignee Howard M. Lewis Ship [ hlship ]
          Howard M. Lewis Ship made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          Howard M. Lewis Ship added a comment -

          This is another useful reference within the spec:

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

          Show
          Howard M. Lewis Ship added a comment - This is another useful reference within the spec: http://www.w3.org/TR/2006/REC-xml-names-20060816/#xmlReserved
          Howard M. Lewis Ship made changes -
          Fix Version/s 5.1.0.0 [ 12313428 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Folke Behrens
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development