This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: regexp? or find # of "."s in string
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] regexp? or find # of "."s in string
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 21 May 2001 21:49:04 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Try:
string-length($x) - string-length(translate($x, '.', ''))
Mike Kay
Software AG
>
> If I can somehow count the number of periods "." in
> the string "id", then I can determine what level the
> <tab> element is at...anyone have any ideas how to
> count the number of occurences in a string with XSL?
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list