This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Counting nodes
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Counting nodes
- From: Ben Robb <Ben at cscape dot com>
- Date: Fri, 25 Aug 2000 09:18:54 +0100
- Reply-To: xsl-list at mulberrytech dot com
Use the count() function in XPath:
<numberofcells>
<xsl:value-of select="count(//cell[@type != ''])"/>
</numberofcells>
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list