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: How to make a like in XSL and use the containes command


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

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