Subject: RE: [xsl] 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] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:if test="contains" OR, Michael A. Thompson | Thread | [xsl] Sun xmlroff XSL Formatter as , Robin Cover |
Re: [xsl] The Perils of Sudden Type, Jeni Tennison | Date | Re: [xsl] xsl:if test="contains" OR, Michael A. Thompson |
Month |