Content with Style

Web Technique

IE Conditional comments in XSL

by Pascal Opitz on September 27 2006, 05:49

Just a small bit of code, but not obious at first glance …


<xsl:comment><![CDATA[[if gte IE 6]>
  <link rel="stylesheet" type="text/css" media="screen" href="ie.css" />
<![endif]]]></xsl:comment>

Comments

  • I got a little XSL Snippet too:
    Curly Brackets in XSL , if you dare using inline Javascript, or generate a template for further transformation. Mind the last paragraph, you might be able to use {{ and }} instead

    by Matthias on September 27 2006, 02:50 #