[xsl] attribute based sorting

Subject: [xsl] attribute based sorting
From: Anil Kumar Veeramalli <anil.v@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 29 Oct 2009 12:03:20 +0530

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>
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.


Current Thread