so if the context node was 'x' I want to the number of 'y'
sub elements:
<x>
<z />
<y />
<z />
<y />
<z />
</x>
So want to get the number of 'y' elements which in this case is 2.
<xsl:variable name="count-of-y" select="count(y)"/>
Michael Kay
http://www.saxonica.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>
--~--