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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Complicated count() query, Zak McGregor | Thread | Re: [xsl] Complicated count() query, Cassandra Bonner |
Re: Fwd: Re: [xsl] element nodes in, Peter Flynn | Date | Re: [xsl] Complicated count() query, Cassandra Bonner |
Month |