Conditional comments are Microsoft’s preffered answer to the differing levels of CSS support in Internet Explorer. I came across a problem recently however, when using xsl templates, where placing the html comment tags directly into the xsl was having no effect.
The issue seems to occur because the html comments in the xsl template, along with their contents, are not rendered to the browser.
The answer is to structure the conditional comment using xsl comment tags, which translate into html comments when the page is rendered, as follows:
