I was wondering whether it\'s possible to sort some elements first and store them (already sorted) in a variable. I would need to refer to them thought XSLT that\'s why I\'d
XSLT version 2.0
you could use perform-sort
and tell that your variable is of type of a sequence of MultiDeposits
using the as keyword
(as="element(MultiDeposits)+
")with this sample xml:
1
2
3
4
5
and using the XSLT version 2.0 sheet:
first date: ,
last date:
the ouput will be:
first date:1998-01-01, last date:2010-08-09