<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsl:output method="html" version="4.0" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd"/> <xsl:template match="@*"> <xsl:copy/> </xsl:template> <!-- Copies all elements from the xhtml namespace into the null namespace so they can be processed by XSLT's html output mode --> <xsl:template match="xhtml:*"> <xsl:element name='{name()}'> <xsl:apply-templates select="@*|node()"/> </xsl:element> </xsl:template> <xsl:template match="xhtml:html/@xml:lang"> <xsl:attribute name='lang'><xsl:value-of select='.'/></xsl:attribute> </xsl:template></xsl:transform>