This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
How do I pass variables into XSL in HTML(JS) to modify results?
SohJai
Greenhorn
Joined: Aug 01, 2001
Posts: 2
posted
0
How can I pass a variable into XSL in this case to give a different result for the user? And if I am able to pass a variable in to XSL, how do I read it from XSL? in my HTML I have this and a <select> where the user can select what he would like to filter out. When item is chosen the 'filter()' runs and I want to make it run the right filter in xsl to output the new Data. How would I go about doin this? <span id=data></span> <script> function filter(){ var xml = new ActiveXObject("Microsoft.XMLDOM") xml.async = false xml.load ("XML.xml") var xsl = new ActiveXObject("Microsoft.XMLDOM") xsl.async = false xsl.load ("XSL.xsl") data.innerHTML = xml.transformNode(xsl) } </script>