This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Multiple Sorting
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Multiple Sorting
- From: "Tim Watts" <timw at 3d3 dot com>
- Date: Fri, 27 Jul 2001 15:05:51 +1000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Using XSLT 1.0, it would be...
<xsl:for-each select="addressbook/contact">
<xsl:sort select="lastname"/>
<xsl:sort select="firstname"/>
...
</xsl:for-each>
:)
-----Original Message-----
From: Jarno.Elovirta@nokia.com
> which has a valid XSL file to translate the data into HTML ordered by
> <lastname> using
>
> <xsl:for-each select="addressbook/contact" order-by="+lastname">
>
> My question is, is it possible to order the data by
> <lastname> and then by
> <firstname> from the same XSL stylesheet?
I think that would be
<xsl:for-each select="addressbook/contact" order-by="+lastname;
firstname">
thought I'm not sure, haven't used that language in a while. You really
should switch over to using XSLT 1.0 soon.
Cheers,
Jarno - CMX: Saatana
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list