This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting in XML

 
Nagarajan Krishnamurthy
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to display a XML file using XSL in a browser.And the main constraint is i have two or three columns in it.First level sorting is achieved by using XSL.What abt second level sorting?How would i be able to do that soring?

Say for an example
If it as three columns namely : Author ,Book , Price
At the time of loading the file i can sort either using Author or Book or Price
Once it is loaded assume that i wanna sort using Price.

How would i be able to do this one ?
 
Arun Prasath
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On click of that corresponding column you can sort either at the server side or if the browser supports you can sort at the client's end using XSL.
 
Nagarajan Krishnamurthy
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The functionality is such that the client should be able to see the data in the manner he/she wants.Say for an example if they want that to be sorted as per the author if the click the author tab it should sort that.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic