This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

arbitrary sorting


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]