[no subject]

The usual workaround for this is to do a two-pass transformation. The
first one to sort the data into the order wanted (and do the part of
output that is dependent on the original order of nodes), the second
to do further processing (dependent on the sorted order of nodes).
Many do this in a single transformation with the xx:nodeset()
extension that - almost - all parsers have. This enables people to
access nodes in both original and sorted order on the same pass.

I hope this helps.
Ragulf Pickaxe :-)

Current Thread