[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Searching a string for partial match; like vb InString or sql LIKE


Subject: RE: [xsl] Searching a string for partial match; like vb InString or sql LIKE
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 6 Aug 2001 18:31:02 +0100

> 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



Current Thread