[xsl] Count number of dots in the given string

Subject: [xsl] Count number of dots in the given string
From: "Lakshmi narayana" <lchintala@xxxxxxxxxxxx>
Date: Tue, 12 Jul 2005 14:50:54 +0500
Hi 
I want to count number of dots in the given string.
for example 
string : MSH-12.2.3
The template should return 2 because two dots are there in the string.
Can any one send me th xslt code to count number of dots in the string.

Thanks
Laxmi Narayana

Current Thread