Re: [xsl] sorting like in order by clause

Subject: Re: [xsl] sorting like in order by clause
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Mon, 5 Mar 2007 21:18:24 +0530
On 3/5/07, Markus Gamperl <markus.gamperl@xxxxxx> wrote:
example select:
select ename, job, deptno, sal from emp order by deptno, job;

This doesn't work:
<xsl:sort select="deptno | job" order="ascending"/>

You need to use two consecutive sort statements:

<xsl:sort select="deptno" order="ascending"/>
<xsl:sort select="job" order="ascending"/>

The default ordering is ascending. So you can just write:

<xsl:sort select="deptno" />
<xsl:sort select="job" />

Mukul Gandhi

Current Thread