This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: MSXML3: Numerical sort needed...
- To: xsl-list at mulberrytech dot com
- Subject: Re: MSXML3: Numerical sort needed...
- From: "Gene Lake" <sixty9th at hotmail dot com>
- Date: Wed, 26 Jul 2000 19:56:52 GMT
- Reply-To: xsl-list at mulberrytech dot com
>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
> >
> > ________________________________________________________________________
>
>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>
Sorry, Microsoft has a different way of sort implementation
I test it
<xsl:for-each select="book" order-by="-number(@priceMin)">
________________________________________________________________________
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