Search

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:

<!--[if IE 6]>
    <p>my message here.</p>
<![endif]-->

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?

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details