This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to make a like in XSL and use the containes command
- To: xsl-list at mulberrytech dot com
- Subject: Re: How to make a like in XSL and use the containes command
- From: Peter Boot <pboot at attglobal dot net>
- Date: Mon, 24 Apr 2000 19:03:54 +0200
- References: <00f701bfae4a$271d0750$5dc34ec2@pipermaru.org>
- Reply-To: xsl-list at mulberrytech dot com
Hi,
Have you checked your spelling?
> "containes(string,searchValue)"
^
This works fine for me:
<xsl:template match="rdg">
<xsl:if test="contains(@wit,$preferredWitness)">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
where e.g. the wit attribute contains 'A1 C5' and the
preferredWitness variable 'A1'
Regards,
Peter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list