Start with a change in mindset. position() does work. It just isn't the
answer to your particular requirement.
Within a sorted for-each, position() returns the position of a node in the
sorted sequence.
I don't know what the solution to your requirement is. You haven't told us
what you want to output, only that it's different to what position()
outputs.
Michael Kay
http://www.saxonica.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>
--~--