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

Re: IE's conditional comments in xslt

Subject: Re: IE's conditional comments in xslt
From: "M. David Peterson" <xmlhacker@xxxxxxxxx>
Date: Sat, 4 Mar 2006 07:27:23 -0700
xsl system property
Yeah, I do understand why you have implemented this, but it seems to
me you are not gaining anything by using if conditional.  None of the
other browsers see the IE specific conditional in the first place, so
why test the system property at all.  If you are going to go the
system-property route then visit http://www.jenitennison.com/ , click
the index.xml link in the upper left hand corner, and view the source
to locate the URI to the stylesheet, you can then access this
styelsheet and see how she has elequently used the extended system
property info made available as part of the MSXML processor to
determined browser version.  Doing both an IE specific condtional that
none of the browsers pay attention to anyway, suggests that

<xsl:if test="system-property('xsl:vendor')='Microsoft'">

Is not even necessary, unless you combine this with the extended
version information that can be accessed to determine which script to


On 3/4/06, Manfred Staudinger <manfred.staudinger@xxxxxxxxx> wrote:
> Sorry David, forgot about the system-property,  so your example would
> then look like:
> <xsl:if test="system-property('xsl:vendor')='Microsoft'">
>         <xsl:comment><![CDATA[[if IE]><![if lt IE 7]><![endif]]]></xsl:comment>
>          <script src="/scripts/ie5.js" type="text/javascript">//*
>  imported via src attribute *//</script>
>          <style type="text/css">
>            @import "/browser/ie5/base.css";
>          </style>
>         <xsl:comment><![CDATA[[if IE]><![endif]><![endif]]]></xsl:comment>
> </xsl:if>
> Manfred


M. David Peterson

Current Thread


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.
First Name
Last Name
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.