This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: node count
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] node count
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 6 Aug 2001 18:18:34 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I want to know how many nodes are within the outlet
count(.//node())
But is that really what you want to know? Perhaps you want to know the
number of <row> elements:
count(row)
Both assume that the <outlet> is your context node.
Mike Kay
Software AG
is there
> some type count
> feature or something, I need to know how many are there
> without much work?
> Any ideas?
>
>
> <outlet>
> <row>
> <recordnum>03D-107C</station_id_num>
> <name>test1</num_at_station>
> </row>
> <row>
> <recordnum>555D-107C</station_id_num>
> <name>test2</num_at_station>
> </row>
> <row>
> <recordnum>03D-107C</station_id_num>
> <name>test3</num_at_station>
> </row>
> </outlet>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list