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: Complicated count() query


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


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