This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: arbitrary sorting
- To: xsl-list at mulberrytech dot com
- Subject: Re: arbitrary sorting
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 12 Jul 2000 18:00:01 +0100 (BST)
- References: <200007121645.SAA30755@mail.informatik.hu-berlin.de>
- Reply-To: xsl-list at mulberrytech dot com
If you want to avoid extensions, probably simplest is to go
<xsl:for-each select="report">
<xsl:sort select="document('')/*/month:*[local-name()=current()/@month]"/>
where your stylesheet looks like
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:month="foo:month-namespace"
>
<month:jan>1</month:jan>
<month:feb>2</month:feb>
...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list