IE Conditional comments in XSL

by Pascal Opitz

published 14 September 2006

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>

Comment

  1. 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
    Matthias Willerich    27 September, 8:50am    #

Have your say

If your comment doesn't show up straight away, please don't be offended - we're not censoring, we are just trying to keep out all the viagra and poker ads. Thanks to an explosion of spam all comments are held for manual green-lighting.

name Remember
email
http://
Message <?>

Quick links

Other people's articles that we think you might be interested in: