Add a conditional comment with XSL

This is probably one of those posts that I’ll use a million times and everyone else will say… that’s nice. Here’s how you create a conditional comment for IE6 with xsl. you need to use an xsl:comment and a cdata and don’t add any extra spacing.


IE6 only element, such as an image or css file

One thought on “Add a conditional comment with XSL”

Leave a Reply

Your email address will not be published. Required fields are marked *