[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Counting occurences of a character in a string


Subject: Re: [xsl] Counting occurences of a character in a string
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 1 Apr 2008 23:17:56 +0100

You'll have to test for efficiency but in addition to the ones posted so
far

count(tokenize($s,'X'))-1

is probably the shortest

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


Current Thread