xsl-list
[Top] [All Lists]

Re: [xsl] attribute based sorting

2009-10-29 04:38:36
Thanks a lot  Michael. Its working as expected..
I have another question, its an extension to that.


<COLUMN NAME="Join_date">28-Oct-1987</COLUMN>

date format will be in DD-MMM-DDDD, what is the good approach to sort this kind 
of dates.


Thanks,
Anil

Michael Kay wrote:
<xsl:sort select="COLUMN[(_at_)NAME='SALARY']" data-type="number"/>

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
-----Original Message-----
From: Anil Kumar Veeramalli [mailto:anil(_dot_)v(_at_)frescoinformatics(_dot_)com] Sent: 29 October 2009 06:33
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>