[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: Is there an or function in XSL-T?
From: Matt Gushee <mgushee@xxxxxxxxxxxxx>
Date: Wed, 27 Mar 2002 15:15:33 -0700
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@xxxxxxxxxxxxx
http://www.havenrock.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.