|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: sorting numbers
Hi Frederic, > In my xml string i get numbers, now if i do a usual sort i'll get > something like 0- 1 - 2 - 21 - 29 - 3 > > etc... nog i'd like to get that sorted as 0 - 1 - 3 - 21 - 29 ... By default with xsl:sort you get alphabetical sort; you want a numerical sort. You can make the XSLT processor sort numerically by setting the data-type attribute on xsl:sort to "number" rather than the default "text". For example: <xsl:sort data-type="number" /> Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








