[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] node count


Subject: RE: [xsl] node count
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 6 Aug 2001 18:18:34 +0100

> 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



Current Thread