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'" <xsl-list at mulberrytech dot com>
- Subject: RE: MSXML3: Numerical sort needed...
- From: Brian Young <Brian dot Young at sas dot com>
- Date: Wed, 26 Jul 2000 14:47:10 -0400
- Reply-To: xsl-list at mulberrytech dot com
Hello,
A question similar to this came up earlier this week and I proposed the use of <xsl:sort>. However, I think it came out that MS XML doesn't support <xsl:sort> and that using number() in the order-by was the way to go...
So:
<xsl:for-each select="book" order-by="number(-@priceMin)">
...
</xsl:for-each>
I think that'll do it, provided that MS XML supports number().
Thanks,
Brian Young
-----Original Message-----
From: Gene Lake [mailto:sixty9th@hotmail.com]
Sent: Wednesday, July 26, 2000 11:44 AM
To: xsl-list@mulberrytech.com
Subject: MSXML3: Numerical sort needed...
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
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list