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. Test.html
        0.3 kB
        Folke Behrens
      2. xml-namespace-prefix.patch
        0.8 kB
        Folke Behrens

        Issue Links

          Activity

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

            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