Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - sorting on two columns [Thread Next] Re: sorting on two columnsTo: NULL Date: 10/8/2007 2:32:00 PM
rote wrote:
> i have something like this
> <xsl:sort order="descendiing" select="conn/@sd" data-type="number"/>
> <xsl:sort order="descendiing" select="conn/@cd" data-type="number"/>
^^^^^^^^^^^
Should be descending.
> Can i sort on 2 columns this way?
Besides the typo, yes, that is the way to go, the xsl:sort elements need
to be child elements of an xsl:for-each or xsl:apply-templates (or
xsl:perform-sort in XSLT 2.0).
> Is there another way to do this?
No, unless you wanted to implement sorting yourself.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
