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

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 UTC