This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is there an or function in XSL-T?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]