[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|