xsl-list
[Top] [All Lists]

Re: RE: Unusual Sort

2005-04-13 10:18:31
Yes, I'd still like to see if a Carlislian translation can't be devised to
sort the sequence into this order:

Freshman
Sophomore
Junior
Senior
Graduate

I don't really have time to whip up a test case, but shouldn't J->S,
G->X, and e->x work..ie
Frxshman
Sophomorx
Sunior
Sxnior
Xraduatx

so this should look something like:
<xsl:sort select="translate('JGe','SXx',grade)"/>

Of course, for a more flexible sort I would try Jirka's suggestion.

Hopefulliy I'm not missing something obvious

Jon Gorman

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>