Conditional Comments Not Working?
This is an open discussion with 1 reply, filed under XSLT.
Search
It will not work like this. There have been several threads in the forum dealing with conditional comments and CDATA sections in XSLT. Maybe you find those threads, or maybe you simply try something like the followig (which is what I generally use for dedicated IE CSS style sheets):
<xsl:comment><![CDATA[[if IE 6]><link rel="stylesheet" type="text/css" href="]]><xsl:value-of select="$root"/><![CDATA[/workspace/assets/css/ie6patches-1.0.css" media="screen" /><![endif]]]></xsl:comment>
Create an account or sign in to comment.
I'm using 1.7 but I started building my site before 2 came out, though I don't imagine that should be the difference maker.
Basically, I'm trying to make a conditional comment for IE6 but I can't get it to show up in IE6... Here's my code:
But nothing shows up in IE6. You can see the actual code in action here: http://www.dougstewartdesign.com/
If you look at the source nothing shows up in any browser, including IE6. What's up?