Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple XSL files/sorting

Status
Not open for further replies.

stupotthesecond

Technical User
Jan 28, 2005
4
FR
I have XML data that I want to display as an HTML table. In my XSL code I'm using a 'for-each' tag associated with a 'sort' tag to retrieve the data.

How I can I make it possible to dynamically change the value of the 'sort' tag 'select' value ? What I mean is that I want the user to be able to have the HTML table sorted by either 'name', 'date', etc...

Is there any way of using multipe XSL files to do this ?
Or maybe there exists something better...
 
Why don't you make it sortable on the client using javascript:


But, if you really want to, you could change the XSL. To do this, you'll need to load the XML and XSLT into XML DOM objects then alter the XSL with DOM methods. This can be done client-side with javascript, or server-side with ASP or similar.

I'll post an example if you want.

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top