This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: netscape vs internet explorer
- From: Frederic Leclercq <frederic at ictportal dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 20 Feb 2002 10:42:15 +0100
- Subject: Re: [xsl] netscape vs internet explorer
- References: <48EA7458E3E4D511AFC900D0B7DBA2F9143EC8@PRIMERGY_02>
- Reply-to: xsl-list at lists dot mulberrytech dot com
That is indeed a solution i actually never thought about it :)
thank you!
Fred.
On Tue, 19 Feb 2002 11:29:24 +0100
Eric.Reiter@ic.lu wrote:
> Is not it possible with a javascript in your XSL?
>
> Eric
>
> -----Original Message-----
> From: Frederic Leclercq [mailto:frederic@ictportal.com]
> Sent: mercredi 20 février 2002 10:29
> To: XSL-List
> Subject: [xsl] 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">
>   <!-- 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(" ")) {
> 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list