This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
arbitrary sorting
- To: xsl-list at mulberrytech dot com
- Subject: arbitrary sorting
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Wed, 12 Jul 2000 18:45:04 +0200 (MET DST)
- Reply-To: xsl-list at mulberrytech dot com
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@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list