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

RE: [xsl] Complicated count() query


Subject: RE: [xsl] Complicated count() query
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Fri, 25 May 2001 08:00:24 +0300

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



Current Thread