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" > occurrences. To count the <name> elements containing "john" (not the number of occurrences of "john"), do: count(//name[contains(translate(., $upper, $lower), 'john')]) where <xsl:variable name="upper">ABCDE...XYZ...</xsl:variable> <xsl:variable name="lower">abcde...xyz...</xsl:variable> with enough characters to handle the alphabet you are using. Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Complicated count() query, Cassandra Bonner | Thread | [xsl] XLST including image in HTML , gary cor |
RE: [xsl] XLST including image in H, Michael Kay | Date | RE: [xsl] Problem with attributes, Michael Kay |
Month |