+ <xslt:copy-of select="html:html/@*"/>
+ <xslt:if test="not(html:html/@lang) and (html:*/@lang|svg:*/@lang|*/@xml:lang)">
+ <xslt:attribute name="lang">
+ <xslt:value-of select="html:*/@lang|svg:*/@lang|*/@xml:lang"/>
+ </xslt:attribute>
+ </xslt:if>
+ <xslt:if test="not(html:html/@xml:lang) and (html:*/@lang|svg:*/@lang|*/@xml:lang)">
+ <xslt:attribute name="xml:lang">
+ <xslt:value-of select="html:*/@lang|svg:*/@lang|*/@xml:lang"/>
+ </xslt:attribute>
+ </xslt:if>