File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XSL Sorting inside for-each Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL Sorting inside for-each" Watch "XSL Sorting inside for-each" New topic
Author

XSL Sorting inside for-each

Nishant Pandian
Greenhorn

Joined: Sep 25, 2012
Posts: 9
Hey Guys,

I have a condition . The following code returns a set of records. My requirement is that it has to sorted out in an ascending order n then sent.


THe output has to sorted out based on "ProcessOrder" element.




Kindly help me out with this... Thanks in advance.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 535
    
    3
You can try this.

If @value's are number and that you want to sort in number type, add an attribute to xsl:sort element, namely, data-type="number".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSL Sorting inside for-each