[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sorting problem
Use data-type="number" on the xsl:sort element. Michael Kay > -----Original Message----- > From: kanirajan nagarajan [mailto:rknaga@xxxxxxxxx] > Sent: 08 April 2004 13:49 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Sorting problem > > Hi, I have a problem with sorting HTML <select> > element. Here is my select option values: > > 1000($59.95) > 2000($109.0) > 3000($155.0) > 4000($201.0) > 5000($500.00) > 500($249.0) > > Always the 500 appears at the bottom.I need to put > "500" at the top. > The values are created by concating two different > variables in the xslt. My xml is sorted and it looks > like this : > > <ProductQuantity qty="500" price="49.95"/> > <ProductQuantity qty="1000" price="59.95"/> > <ProductQuantity qty="2000" price="109.0"/> > <ProductQuantity qty="3000" price="155.0"/> > <ProductQuantity qty="4000" price="201.0"/> > <ProductQuantity qty="5000" price="249.0"/> > > How should I go? > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway > http://promotions.yahoo.com/design_giveaway/
|
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
|