Subject: RE: IF statement with AND expression
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 15 Nov 2001 17:20:55 -0000
|
> 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
|