xsl-list
[Top] [All Lists]

RE: [xsl] Resetting Position() in multiple for-each loops

2006-03-24 01:05:38

If it's really doing what you say, then there's a bug in your processor. I
think it's more likely however that you have misunderstood what's going on.
We need to see your code. Please try to construct a small sample that
illustrates the problem.

Michael Kay
http://www.saxonica.com/


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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>