| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Calling XSL templates from within hyperlink|
I am making my own XSL stylesheet and I want to perform different views and sorting of the data.
My XML file is quite large so i want to avoid diplsying the same data in different views on the same page and it seems pointless.
What i want to do is have some links at the top of the page where i can click a link and be presented with that view.
I had the idea but don't know how to do it and that is to call the template for any view that i wanted.
I would presume it would occur here but no idea how to make it work. Can anyone please help?
<code dump snipped>
[edited by: httpwebwitch at 7:55 pm (utc) on May 21, 2010]
[edit reason] removed code dump [/edit]
You'll need one stylesheet for each kind of view
When the user clicks a link, load the page with a different querystring. Based on the querystring, include a different XSLT stylesheet.
Use a server-side scripting language like PHP to render the right XSLT stylesheet
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved