[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Am 29.10.2009 um 07:33 schrieb Anil Kumar Veeramalli:
I assume you process <employee> maybe in a xsl:for-each loop. The try:
<xsl:sort select="column/@salary" *data-type="number"*/>
- Michael
Re: [xsl] attribute based sorting
Subject: Re: [xsl] attribute based sorting From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx> Date: Thu, 29 Oct 2009 08:57:45 +0100 |
Am 29.10.2009 um 07:33 schrieb Anil Kumar Veeramalli:
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"*/>
I assume you process <employee> maybe in a xsl:for-each loop. The try:
<xsl:sort select="column/@salary" *data-type="number"*/>
- Michael
-- _______________________________________________________________ Michael M|ller-Hillebrand: Dokumentations-Technologie Adobe Certified Expert, FrameMaker Lvsungen und Training, FrameScript, XML/XSL, Unicode Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] attribute based sorting, Anil Kumar Veeramall | Thread | Re: [xsl] attribute based sorting, Anil Kumar Veeramall |
Re: Re: [xsl] Create word elements , Larry Hayashi | Date | Re: [xsl] attribute based sorting, Anil Kumar Veeramall |
Month |