This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: More arbitrary sorting
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: More arbitrary sorting
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 7 Aug 2000 10:25:55 +0100
- Reply-To: xsl-list at mulberrytech dot com
I think this kind of sorting is almost impossible without using extensions
functions (which aren't hard to use, though non-portable). This is because
the sort key has to be an XPath expression, and XPath expressions don't
allow conditional logic.
Mike Kay
> I have some data:
> <item>MacBean</item>
> <item>McBarlow</item>
> <item>Re MacBart</item>
> <item>Re McBeanie</item>
>
> Which needs to be sorted and transformed as follows:
> <item>McBarlow</item>
> <item>Re McBart</item>
> <item>MacBean</item>
> <item>Re McBeanie</item>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list