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]

using "and" / "or"


Hi Carlos !
 There is solution of your problem :

  <xsl:choose>
   <xsl:when test="(num_at_station='1') or (num_at_station='2')">
                 <tr>
                   <td>do whatever you whant</td>
                 </tr>
   </xsl:when>
   <xsl:otherwise>
                 <tr>
                   <td width="83">everything else</td>
                 </tr>
   </xsl:otherwise>
 </xsl:choose>

Good luck. Alex.
---------------------- Forwarded by Alex Genis/DTCC on 08/03/2001 02:35 PM
---------------------------


Carlos Pisquem <cpisquem@conceptinc.ca> on 08/03/2001 02:02:58 PM

Please respond to xsl-list@lists.mulberrytech.com

To:   "'XSL-List@lists.mulberrytech.com'" <XSL-List@lists.mulberrytech.com>
cc:    (bcc: Alex Genis/DTCC)
Subject:  [xsl] using "and" / "or"




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

          <xsl:choose>
          <xsl:when test="num_at_station='1'">
                 <tr>
                   <td width="83">station is 1 or 2  </td>
                 </tr>
       </xsl:when>
       <xsl:otherwise>
                 <tr>
                   <td width="83">everything else</td>
                 </tr>
          </xsl:otherwise>
        </xsl:choose>


Please let me know ASAP.
Thanks.

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






 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]