Re: [xsl] generating IE conditional comments, in IE

Subject: Re: [xsl] generating IE conditional comments, in IE
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Sat, 3 Jul 2010 10:19:05 +0100
Eric

I'm sure there was a long thread about this about two years ago. Maybe worth a search. If I recalll david Carlisle had a few things to say on the subject, as he often does :)


Joe http://joe.fawcett.name/

--------------------------------------------------
From: "Eric J. Bowman" <eric@xxxxxxxxxxxxxxxx>
Sent: Saturday, July 03, 2010 10:13 AM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [xsl] generating IE conditional comments, in IE

Nevermind... sorted.  Each if-endif needs to have its own xsl:comment,
instead of stuffing everything in one xsl:comment.  The following syntax
works nicely:

<xsl:comment>[if IE]<![CDATA[ ... ]]>&lt;![endif]</xsl:comment>

Using CDATA depends on the content, it isn't required.  But, if it is
used, it needs to be inside the if-endif.

-Eric

Current Thread