Subject: Re: [xsl] Resetting Position() in multiple for-each loops From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 23 Mar 2006 21:13:46 -0500 |
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?
-- Upcoming XSLT/XSL-FO hands-on courses: Washington,DC 2006-06-12/16 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Resetting Position() in multi, rostom aghanian | Thread | Re: [xsl] Resetting Position() in m, Kamal Bhatt |
[xsl] Resetting Position() in multi, rostom aghanian | Date | Re: [xsl] Resetting Position() in m, Kamal Bhatt |
Month |