[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using IE's CC (Conditional Comments) inside an XSL fil

Subject: Using IE's CC (Conditional Comments) inside an XSL file.
From: Stephen Cunliffe <scunliffe@xxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Jun 2006 17:45:52 -0400
ie cc
Hi all,

I did check the FAQ, and scoured the Net but I was unable to find a good, workable answer for this.

I want to, in my XSL, insert a CC for IE6, that inserts a script tag, if it is IE.

E.g. this is the rendered result of what I want.

<!--[if IE 6]>
<script src="foo.js"></script>
<![endif]-->

I've tried using xsl:comment, xsl:text, and all manor of escaping with no success.. I either get my angle brackets escaping as &lt;, &gt; or I get malformed XML errors, or I get the comments to output okay, but my script tag doesn't show up (in the source, e.g. my script gets parsed as part of the comment on the XSL side)

If anyone has suffered through this, and found a working solution, I will be forever in debt.

Cheers,
Steve

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.