|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Complicated count() query
> 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
|
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
|

Cart








