xsl-list
[Top] [All Lists]

Re: [xsl] sorting like in order by clause

2007-03-05 08:48:38
On 3/5/07, Markus Gamperl <markus(_dot_)gamperl(_at_)gmx(_dot_)at> 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" />

--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>