Subject: Re: count
From: Paul Levin <plevin@xxxxxxx>
Date: Wed, 19 Jan 2000 12:08:06 -0500
|
Marco,
I think your are looking for the position() function.
Marco.Mistroni@xxxxxxxxx wrote:
> hi all,
> sorry if it is a FAQ...i am in a hurry...
> suppose that i have 5 tag
> <animal name=hh>
> <animal name=tiger>
> <animal name=cat>
> <animal name=dog>
> <animal name=bear>
>
> i am looking for a function that can count,as the template is applied, which
> number of occurrence is the node(forgive my bad speaking)....
>
> for example, as it parses(again, sorry for the language) animal= hh it
> should return 1
> animal=tiger
> return 2
>
> sorry if i am stupid or ignorant, but does the function position() does the
> same(or something like that)?
>
> thanx to all
> regards
> marco
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|