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

Re: using "and" / "or"

Subject: Re: using "and" / "or"
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 03 Aug 2001 15:00:12 -0400
xpath using and
Carlos,

"and" in XPath (XSL's expression language) is "and".

"or" is "or".

As in:
<xsl:when test="num_at_station='1' or num_at_station='2'"> ...

If you need an answer to this kind of question *quickly*, the best way to get it is to refer directly to the XPath and XSLT Recommendations (at www.w3.org). They are both reasonably short and clear (especially for technical specs). Your question can be answered in minutes if you happen to know where these documents are and what they cover. Best of all, they are absolutely authoritative (assuming you are using XSLT, which not everyone is who thinks they are).

Another readily available resource is the XSL FAQ maintained by Dave Pawson, which is linked from the XSL-List page whose URI appears at the end of every list message.

Cheers,
Wendell

At 02:02 PM 8/3/01, you wrote:
Is there an "and" or a "or" idea available in XSL, in Javascript we can use
&& and the !.
I want to do this check below and to see if num_at_station ="1" and/or
num_at_station ="2" but I don't want to use the same code twice making it
redundant..... so if it's 1 or 2 show one thing otherwise show the
rest......
Is this "and" "or" idea avaible to suit my needs


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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.