This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Is there an or function in XSL-T?
- From: "Raffaele Sena" <raff at aromatic dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 27 Mar 2002 14:16:44 -0800
- 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
>
> I can achieve what I need using two <xsl:if>s with the "not" function or
> with <xsl:choose>, but is there a more elegant way to connect two
> conditions with an "or" operator?
>
You can use the "or" operator :)
<xsl:if test="@res='value1' or @res='value2'">
...
</xsl:if>
-- Raffaele
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list