XSLT: How to reverse output without sorting

Posted by prometoys on Stack Overflow See other posts from Stack Overflow or by prometoys
Published on 2010-03-16T00:24:23Z Indexed on 2010/03/16 0:29 UTC
Read the original article Hit count: 629

Filed under:
|

Hi,

I have a list of items:

a x c z

and I want as output

z c x a

I have no order information in the file and I just want to reverse the lines. The last line in the source file should be first line in the output. How can I solve this problem with XSLT without sorting by number etc.

© Stack Overflow or respective owner

Related posts about xslt

Related posts about reverse