467,134 Members | 1,073 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

Dynamically switching between different XSLT stylesheets

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
  • viewed: 2426
Share:
2 Replies
Dököll
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
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@osp-dd.de | last post: by
1 post views Thread by Sergey Dubinets | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.