Sharma, Jaikumar wrote:
Example :
<root>
<sub-root>
<element>test123</element>
<element>test145</element>
<element>test129</element>
<element>test145</element>
<element>test129</element>
</sub-root>
</root>
I want to count total number of occurances having '145' under sub-root
node,
count(/root/sub-root/element[substring(., 5, 3) = '145']
--
Martin Honnen
http://JavaScript.FAQTs.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--