[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: MSXML3: Numerical sort needed...

Subject: Re: MSXML3: Numerical sort needed...
From: Charles Douthart <charles.douthart@xxxxxxxxxxxxx>
Date: Wed, 26 Jul 2000 13:51:16 -0400
xsl sort numerical
Gene Lake wrote:
> 
> Hi, folks.
> 
> Somebody tried to give a solution for a problem:
> <xsl:for-each select="book" order-by="-@priceMin">
> it performs character sorts rather numerical (Am I clear?)
> "9.99" is greater than "23.99"
> 
> and I deleted this message...
> I need solution for msxml3 (I'm currently using Xalan for this):
> 
> Thanks
> 
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Don't know is this is msxml3, but have you tried the following?

<for-each select="book">
	<xsl:sort
		select="@priceMin"
		order="ascending"
		data-type="number"
	/>
</for-each>
-- 
----------------------------------------
Charles Douthart
Trifolium, Inc
(919)854-4920 x264
charles.douthart@xxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.