This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Is there an or function in XSL-T?
- From: Matt Gushee <mgushee at havenrock dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 27 Mar 2002 15:15:33 -0700
- Subject: Re: [xsl] Is there an or function in XSL-T?
- References: <5.1.0.14.0.20020327215915.00a22e30@mail.unique.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
On Wed, Mar 27, 2002 at 10:02:20PM +0000, Ralph Holz wrote:
> if @res="value1" or @res="value2" then
> do something
> else do nothing
>
> I didn't find an "or" function specified in XSL-T, though there's a not().
There isn't an 'or' function, but there's an 'or' operator. Try:
<xsl:if test="@res='value1' or @res='value2'">
<!-- do something -->
</xsl:if>
--
Matt Gushee
Englewood, Colorado, USA
mgushee@havenrock.com
http://www.havenrock.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list