John Smart Posted May 28, 2008 Share Posted May 28, 2008 Hi everyone,Currently to display some xml filtered by some parameters in an xsl file, we create a html file and use java to pull in the xsl and the xml.A quick question - is it possible for a link from a html page to point directly to an xsl file, which looks up the xml itself? I'm guessing the answer is no, in fact i'm certain, but I might be missing something, as we're pretty new to this stuff.Basically rather than having to have a html and xsl file for every single page we link to, we'd just have xsl files. Thanks,John Link to comment Share on other sites More sharing options...
boen_robot Posted June 7, 2008 Share Posted June 7, 2008 You could have a single HTML page, and a single XSLT file, pointing to a single XML file. JavaScript, residing on the HTML page would simply adjust parameters (xsl:param elements) from the XSLT, and XSLT itself can be made to behave differently based on values of parameters.The JavaScript to do that is a little complicated though. So complicated, that you'll have to use a library like Sarissa to overcome at least most of the issues. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.