[Home] [By Thread] [By Date] [Recent Entries]
Stephen Cunliffe wrote:
Hi all, Hi Stephen, On my web site I have an article about this very issue, including an XSLT template you can call to produce IE conditional comments. It takes a qualifier (e.g "IE 6" or "lte IE 6") and a result tree fragment as parameters; there's a (hopefully clear) explanation of how to use it, and an example document. You can find the post at: <http://www.nickfitz.co.uk/2005/10/27/ie-conditional-comments-in-xslt-10/> and the demo at <http://www.nickfitz.co.uk/xslt/cc/ConditionalCommentDemo.xml> which uses <http://www.nickfitz.co.uk/xslt/cc/ConditionalCommentDemo.xsl> from which you can copy the template. Note that a recent WordPress upgrade seems to have messed up some of the markup in the article. I think I've fixed it now but it's safer to grab the code from that .xsl file. HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/
|

Cart



