This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Complicated count() query
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Complicated count() query
- From: "Jarno Elovirta" <jarno at codeonline dot com>
- Date: Fri, 25 May 2001 08:00:24 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
Heippa
> and I would like to do a case-insensitive count of all "john"
> occurrences. Does anyone have any idea how to do this? I'm completely
> stumped.
<xsl:value-of select="count(/list/student[contains(translate(name,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), 'john')])" />
Will do it, but it would also match "Andrew Johnson" - hope this still
helps,
Jarno - The Cure: Friday I'm In Love
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list