This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: IF statement with AND expression
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 15 Nov 2001 17:20:55 -0000
- Subject: RE: [xsl] IF statement with AND expression
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I realize that this may be a stupid question, but here
> goes... I am a new user to XSL/XML, and I am attempting to
> create an IF statement with a couple of AND expressions in
> it, since I do not wish to use nested IF statements. However,
> I keep getting an error when I try to do this.
> Any help would be greatly appreciated.
>
It's surprising how often people ask this. I don't know why, did you have
trouble finding it in the spec, or were you doing it by trial and error?
<xsl:if test="a=1 and b=2 and c=3">
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list