472,119 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

Dynamically switching between different XSLT stylesheets

20
Hello,

I'd like to use XML + XSLT to create a sortable table. The XML stores the data, and two different XSL stylesheets display the table, sorted in two different ways. What I don't understand is how to allow the user to switch between the two stylesheets (and hence two sorting options).

I can provide code snippets if that would help, but I'm basically looking for the general concept here - how can you dynamically switch XSLT stylesheets (if it's helpful, my reference point is CSS stylesheets, which are pretty easy to switch using php)?

Thanks!
Nov 30 '07 #1
2 2560
Dököll
2,364 Expert 2GB
Hello,

I'd like to use XML + XSLT to create a sortable table. The XML stores the data, and two different XSL stylesheets display the table, sorted in two different ways. What I don't understand is how to allow the user to switch between the two stylesheets (and hence two sorting options).

I can provide code snippets if that would help, but I'm basically looking for the general concept here - how can you dynamically switch XSLT stylesheets (if it's helpful, my reference point is CSS stylesheets, which are pretty easy to switch using php)?

Thanks!
Hello, TAL651!

Here's an example code I pulled up for you, see if that helps:
http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html

Have a good week-end!
Dec 1 '07 #2
TAL651
20
Thanks for that webpage; looks promising!
Dec 16 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Andy Dingley | last post: by
1 post views Thread by Piet L. | last post: by
1 post views Thread by Mr. Clean | last post: by
6 posts views Thread by David Walker | last post: by
3 posts views Thread by thomas.porschberg | last post: by
1 post views Thread by Sergey Dubinets | last post: by
5 posts views Thread by maya | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.