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

RE: netscape vs internet explorer

Subject: RE: netscape vs internet explorer
From: Eric.Reiter@xxxxx
Date: Tue, 19 Feb 2002 11:29:24 +0100
netscape vs internet explorer
Is not it possible with a javascript in your XSL?

Eric

-----Original Message-----
From: Frederic Leclercq [mailto:frederic@xxxxxxxxxxxxx]
Sent: mercredi 20 février 2002 10:29
To: XSL-List
Subject:  netscape vs internet explorer


Hi,

I would like to check in my XSL if the client is a nn or a msie user...

Depending on that, the user should see another
<table><tr><td></td></tr></table> all the rest in the page is the same...

how can i check that in XSL ? if not i can give it with a parameter to the
xsl, but then i have following problem : 
<xsl:variable name="spatielijn">
	<xsl:choose>
		<xsl:when test="string-length($spatie)=2"> 
			&#160; <!-- this is only when it is a nn user!) as i
send or "NN" (2) or "MSIE" (4)
		</xsl:when>
	</xsl:choose>
</xsl:variable>

Now, how can i do something as :

if (spatielijn.equals("&#160")) {
	out.println("Netscape");
} else {
	out.println("MSIE");
}

but then in xsl format ?

Thanks in advance,
Fred.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.