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

RE: sorting problem

Subject: RE: sorting problem
From: Modha Kumar <Modha.Kumar@xxxxxxxxxxxxx>
Date: Wed, 14 Feb 2001 10:42:36 -0800
44344444
Looks like it is sorting based on ascii value 
not sure


-----Original Message-----
From: Awasthi, Anand [mailto:Anand_Awasthi@xxxxxxx]
Sent: Wednesday, February 14, 2001 10:24 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  sorting problem



 hi i am trying to sort following xml :


<AAA>
	<BBB>1</BBB>
	<BBB>22</BBB>
	<BBB>11</BBB>
	<BBB>2222</BBB>
	<BBB>1111</BBB>
	<BBB>10</BBB>
	<BBB>444444</BBB>
</AAA>


in desecnding order using following  xsl:


<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="AAA">
      <xsl:apply-templates  select="BBB">
	        <xsl:sort data-type="number"  order="descending"
select="."/>
      </xsl:apply-templates>
  </xsl:template>
</xsl:stylesheet>


but everytime i am getting following output :

1 10 11 1111 22 2222 44344444

but acrually it should be :

1 10 11 22 1111 2222 44344444

i am not sure what the problem is ??


could somoene pls look into above xsl  piece and le t me know the problem ??


thanks
Anand

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

 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.