[thelist] xsl:for-each "breaking" after processing several elements?

Zdravko Beykov z.beykov at jacobs-university.de
Sun Jun 10 17:44:01 CDT 2007


I face the following problem - I have an xml document that contains
players with their rankings, and I would like to output the top five
players, and don't do anything with the others.
I would use xsl:for-each and xsl:sort, but how can i keep track if i have
already outputted 5 players (i mean i can't keep a counter in xsl due to
the nature of the variables in xsl).

I am kind of new to xsl ...




More information about the thelist mailing list