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

RE: attribute based sorting

Subject: RE: attribute based sorting
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 29 Oct 2009 08:29:29 -0000
RE:  attribute based sorting
<xsl:sort select="COLUMN[@NAME='SALARY']" data-type="number"/>

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

> -----Original Message-----
> From: Anil Kumar Veeramalli [mailto:anil.v@xxxxxxxxxxxxxxxxxxxxx] 
> Sent: 29 October 2009 06:33
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  attribute based sorting 
> 
> Hi,
> 
> I wanted to sort based on salary. please suggest me on 
> this.can you give me some sample code.
> my sample xml file look like this
> <employee>
>     <COLUMN NAME="SALARY">95000</COLUMN>
>   </employee>
> with multiple employees.
> 
> I want to sort based on Salary attribute. instead of <column 
> name="salary">95000</column> this , <salary>1000</salary> 
> with this I am able to sort it out  like this <xsl:sort 
> select="salary" *data-type="number"*/>
> 
> 
> Please please help out on this.
> 
> Thanks,
> Anil

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.