[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Sorting Problem with XSL
Greetings all, Here's the xml doc <Contacts> <Contact name = "Anupam" salary = "5550"> <Contact name = "Bhanu" salary = "10000"/> </Contacts> xsl stylesheet <xsl:apply-templates select = "Contact" order-by = "@salary"> This command puts "BHANU" ahead of "ANUPAM" because it sorts on the basis of first digit. To me, this seems like string comparision rather than sorting by number. Question: ---------- Is it possible to do sorting by numbers using stylesheets? Thanks Anupam Gupta Imparto Software Corp XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|