Conditional comments
XSLT
Сабж при помощи XSLT.
<xsl:template name="conditionalComment">
<xsl:param name="qualifier" select="'true'" />
<xsl:param name="contentRTF" select="''" />
<xsl:comment>[if <xsl:value-of select="$qualifier"/>]<![CDATA[>]]>
<xsl:copy-of select="$contentRTF" />
<![CDATA[<![endif]]]></xsl:comment>
</xsl:template>
Например
<xsl:call-template name="conditionalComment">
<xsl:with-param name="qualifier" select="'IE 6'" />
<xsl:with-param name="contentRTF">
<![CDATA[<link rel="stylesheet" href="ie6.css" type="text/css" />]]>
</xsl:with-param>
</xsl:call-template>
