|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: count
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








