Using count in xsl

tmmet tvp tmmet at
Thu Dec 23 21:54:36 GMT 1999

I want to get the count of total number of nodes in my xml file.How can I do 
this in xsl?.Since,IE5 doesnot support XSLT,I can't use XSLT functions like 
position,count(),from-descendants() etc.
In MSXML,we have <xsl:script>,in which I can call the function for 
incrementing my count(variable).I would be glad if there is any other method 
to do this(getting the count of total nodes,subnodes of a particular 
type/tag etc) using XSL which will work in IE5 also.Any ideas will be 
greatly helpful for me.
Thanks in advance.

Get Your Private, Free Email at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list