This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Boolean expr in <xsl:when>
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 22 Feb 2002 16:08:20 -0000
- Subject: RE: [xsl] Boolean expr in <xsl:when>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Schmoll,
> Brett x66244
> Sent: 22 February 2002 15:49
> To: 'XSL-List@lists.mulberrytech.com'
> 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