[XSL-LIST Mailing List Archive Home]
RE: [xsl] Complicated count() query
Subject: RE: [xsl] Complicated count() query|
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 25 May 2001 13:06:26 +0100
> and I would like to do a case-insensitive count of all "john"
To count the <name> elements containing "john" (not the number of
occurrences of "john"), do:
count(//name[contains(translate(., $upper, $lower), 'john')])
with enough characters to handle the alphabet you are using.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list