[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: IE's conditional comments in xslt
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'"> ... </xsl:if> Is not even necessary, unless you combine this with the extended version information that can be accessed to determine which script to use. HTH! 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:D/> M. David Peterson http://www.xsltblog.com/
|
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
|