xsl-list
[Top] [All Lists]

RE: xsl:if test="contains" OR

2003-02-19 12:40:35
From: Brian Burridge [mailto:maillist(_at_)burridge(_dot_)net]
Sent: Wednesday, February 19, 2003 12:13 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] xsl:if test="contains" OR


I want to check if a string contains one item OR anothr item. So I
currently have <xsl:if test="contains(type,'A')">, but want 
to check for
either "A" OR "B".

How do I do that?

Use the 'or' expression:

<xsl:if test="contains(type,'A') or contains(type,'B')">
  ...
</xsl:if>

hth,
b.

| brian martinez                              
brian(_dot_)martinez(_at_)trip(_dot_)com |
| senior gui programmer                                  303.708.7248 |
| trip network, inc.                                 fax 303.790.9350 |
| 6436 s. racine cir.                             englewood, co 80111 |
| http://www.cheaptickets.com/                   http://www.trip.com/ |

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



<Prev in Thread] Current Thread [Next in Thread>