This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: !!!counters in XSL!!!
- To: Rosa I-Ting Cheng <Rosa at ceanet dot com dot au>
- Subject: Re: [xsl] !!!counters in XSL!!!
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Thu, 5 Apr 2001 09:41:15 +0100
- CC: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Organization: Jeni Tennison Consulting Ltd
- References: <800153F5FB9AD2119E8E004033A0B7DF656353@mail.ceanet.com.au>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Rosa,
> or how can I counter the number of nodes with the "node" attribute
> equaling to say "here"?
That's what the count() function is for. Make a node set of the nodes
that you want to count:
*[@node = 'here']
And then pass that as the argument to the count function:
count(*[@node = 'here'])
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list