RE: [xsl] Boolean expr in <xsl:when>

Subject: RE: [xsl] Boolean expr in <xsl:when>
From: "Schmoll, Brett x66244" <BSchmoll@xxxxxxxxxxx>
Date: Fri, 22 Feb 2002 11:33:13 -0500
Thanks for the response, I did try both the <<$and$>> and <<&&>> that were
listed in the MS SDK 2.5 docs, with no success. Is there a simple way to
upgrade each client as they access our site? Unfortunately our app is still
required to support IE 5.5 sp2 with client-side transforms. We haven't quite
made the leap to IE6 yet.

-Brett Schmoll
ADP/SIS

-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx]
Sent: Friday, February 22, 2002 9:08 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Boolean expr in <xsl:when>


In XSLT the operator is indeed "and".

You problem is indeed that you are not using XSLT, but an old Microsoft
language called WD-xsl. I seem to remember that some operators in WD-xsl
were written like $and$, you could try that. But better still, upgrade to
XSLT - the sooner you do it, the lower the cost.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Schmoll,
> Brett x66244
> Sent: 22 February 2002 15:49
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: [xsl] Boolean expr in <xsl:when>
>
>
> Hi,
>
> 	I've had no luck in finding an answer to this in the Faq's or
> archives but it seems like a question that would have been asked and
> answered long before my query.
>
> How do I test for multiple conditions in a xsl:when element?
> e.g. <xsl:when
> test="*/foo[.='a'] and */bar[.='b']">
>
> It generates an error message "Expected token 'eof' found 'NAME'.
> (*/tradingpowerenabled[.='y']) -->and<--
> (*/combineavailablecash[.='n'])"
> from the XSL Tester.
>
> My problem may be that I'm using MSXML 2.6.
>
> Any ideas?
>
> -Brett Schmoll
> ADP/SIS
>
>  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


Current Thread