Re: RE: [xsl] Unusual Sort

Subject: Re: RE: [xsl] Unusual Sort
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 13 Apr 2005 16:27:18 -0400
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

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 :-).


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. 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 ======================================================================

Current Thread