xsl-list
[Top] [All Lists]

Re: RE: Unusual Sort

2005-04-13 13:27:18
Hi Jon,

At 01:18 PM 4/13/2005, you wrote:
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)"/>

That looks right to me. (My plea is having had to teach this afternoon -- XSLT! :-)

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

Yes -- I hope the OP saw that. It's the canonical "correct" answer, I believe, if you want something general and extensible.

Hopefulliy I'm not missing something obvious

As always (I mean hopefully as always, not missing something obvious as always :-).

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


--~------------------------------------------------------------------
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>