This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: node count


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]