Martin Honnen <ma*******@yahoo.de> writes:
Output method html would also not help to get rid of attributes like
xml:lang.
I think the "xml:lang" attribute is the only one in XHTML 1.0 that
causes complications. (In XHTML 1.1, there is also the "version"
attribute of the "html" element.) If the XHTML uses "xml:lang"
attributes, a template is needed to transform these to "lang".
<!-- XHMTL xml:lang attribute -->
<xsl:template match="@xml:lang">
<xsl:attribute name="lang">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
If the XHTML uses both "xml:lang" and "lang" in parallel, a template
is needed to suppress "xml:lang":
<!-- XHMTL xml:lang attribute -->
<xsl:template match="@xml:lang"/>
--
Dean Tiegs, NE¼-20-52-25-W4
“Confortare et esto robustus”
http://telusplanet.net/public/dctiegs/