+ <xslt:if test="$VERSION">
+ <xslt:attribute name="书社:version">
+ <xslt:value-of select="$VERSION"/>
+ </xslt:attribute>
+ </xslt:if>
+ <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>