This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]