[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Using IE's CC (Conditional Comments) inside an XSL
Subject: Re: Using IE's CC (Conditional Comments) inside an XSL file.|
From: "M. David Peterson" <xmlhacker@xxxxxxxxx>
Date: Sun, 18 Jun 2006 17:15:19 -0600
:D Very cool! Whats great about this is the survival from Xalan to
Saxon > coming from a bit of experience with this, I can attest to the
fact that the transition, dependent, of course, on the code base being
transfered, is not always an easy one...
Thanks for the info! :)
On 6/17/06, M. David Peterson <m.david@xxxxxxxxxx> wrote:
Actually, I just noticed you had this set inside of a template...
EVEN BETTER!!! Thanks! I plan to take advantage of your solution (e.g.
replace mine with yours :D)
On Sat, 17 Jun 2006 20:15:24 -0600, M. David Peterson <m.david@xxxxxxxxxx>
> Hey Nick, Steven,
> That's cool you came up with a decent solution. There is a slightly
> simpler way that we discussed here on this list back in March
> [http://www.biglist.com/lists/xsl-list/archives/200603/msg00111.html and
> after a bit of a misunderstanding between myself and Manfred, ends
> happily, here >
> <xsl:comment><![CDATA[[if lt IE 7]>
> /* code goes here */
> I didn't read through your whole article, so this may very well be a
> similar solution that you came up with. Either way, its always good to
> see that logic was able to bring things to same general solution... It
> always warms my heart to see logic prevail :D
> On Sat, 17 Jun 2006 10:12:37 -0600, Nick Fitzsimons
> <nick@xxxxxxxxxxxxxx> wrote:
>> Stephen Cunliffe wrote:
>>> 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>
>> 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:
>> and the demo at
>> which uses
>> 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.
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format