This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Searching a string for partial match; like vb InString or sql LIKE
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Searching a string for partial match; like vb InString or sql LIKE
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 6 Aug 2001 18:31:02 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> In the example below, it does not work with partial name.
>
> <xsl:template match="/">
> <xsl:apply-templates select="//school[contains($xName,
> school_name)]"/>
> </xsl:template>
Reverse the arguments. contains(x, y) returns true if x contains y.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list