W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2012

[Bug 20261] [Ser 3.0] Usability problem with XHTML 5.0 prefix stripping

From: <bugzilla@jessica.w3.org>
Date: Thu, 06 Dec 2012 09:35:04 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-20261-523-6dTRtwYj22@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20261

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
A related problem: the rule also states "The serializer MUST serialize a
default namespace declaration for the namespace, unless a default namespace
declaration for the same namespace URI is already in scope for the element in
the serialized result." but fails to say that this namespace declaration must
be cancelled on any descendant elements that use a different default namespace
or none.

I would propose solving these issues by describing the process differently. The
XHTML 5.0 serializer should apply the following transformation to the result
tree prior to serialization:

<xsl:template match="xhtml:* | svg:* | mathml:*">
  <xsl:element name="{local-name()}" namespace-uri="{namespace-uri()}">
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 6 December 2012 09:35:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 December 2012 09:35:11 GMT