File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL Sorting inside for-each" Watch "XSL Sorting inside for-each" New topic

XSL Sorting inside for-each

Nishant Pandian

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: 632
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:
subject: XSL Sorting inside for-each
It's not a secret anymore!