Subject: RE: xsl:if test="contains" OR
From: "Martinez, Brian" <brian.martinez@xxxxxxxx>
Date: Wed, 19 Feb 2003 12:40:35 -0700
|
> From: Brian Burridge [mailto:maillist@xxxxxxxxxxxx]
> Sent: Wednesday, February 19, 2003 12:13 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 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.martinez@xxxxxxxx |
| 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
|