counting child nodes
Hello,
I'm working in a xslt file that has to count the number of child nodes of an specific parent node.I've been looking at the function
"count" but I don´t know how to call it.
Example:
<a>
<b> </b>
<b> </b>
<b> </b>
</a>
Output 3
<xsl:template match="a">
<xsl:value-of select="count(child::b)"/>????????
</xsl:template>
Thanks for the help.
Tomi.
|