arbitrary sorting

Subject: arbitrary sorting
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jul 2000 18:45:04 +0200 (MET DST)
Hello,

supposing I have elements with a month attribute
<report month="Jan" />
<report month="Feb" />
and so on.
Of course unordered :-)

Now I want them in chronological order.
I.e. I have to provide an expression as select attribute of xsl:sort
which is the sort key. Is that possible with standard XSLT?

I know how to translate Jan->1, Feb->2 etc via a named template resp.
xsl:choose, but that doesn't help much in this case.

Thanks for your hints,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread