[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] sorting a table based on first column which contains both numbers and words


Subject: RE: [xsl] sorting a table based on first column which contains both numbers and words
From: "Robby Pelssers" <robby.pelssers@xxxxxxxxx>
Date: Fri, 18 Dec 2009 14:48:02 +0100

Cool...that one works.. I'll have to dive into the xslt2.0 spec to grasp
what's happening here ;-)

Thx !!

Robby

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, December 18, 2009 2:42 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] sorting a table based on first column which contains
both numbers and words


> But I wanted numbers first and then strings.

in that case:


 <xsl:sort select="- number(td)" order="descending" data-type="number"/>
 <xsl:sort select="td" data-type="text"/>

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________


Current Thread