[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Resetting Position() in multiple for-each loops

Subject: Resetting Position() in multiple for-each loops
From: "rostom aghanian" <rostom@xxxxxxxx>
Date: Fri, 24 Mar 2006 08:13:25 +0800
multiple foreach
Hello,
I'm having a small problem which I'm hoping someone can help me with.

I have multiple xsl:for-each loops where I am trying to output the position
of
my index in each loop. These xsl:for-each loops are NOT nested. The problem
is
that the Position() function does not seem to reset itself once I am done
with
one loop and move on to the next. So if my first loop contained 5 items, I
will
get 1 through 5 outputted, but then when I start my next loop the Position()
outputs 6, 7, 8, etc. I need it to restart the counter. How would I go about
doing this? Thanks in advance.

rostom

--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.