DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   XML, XSLT and XPATH (http://www.daniweb.com/forums/forum134.html)
-   -   Parse JavaScript Variable to a XSLT Variable (http://www.daniweb.com/forums/thread200446.html)

athlonica Jun 29th, 2009 7:38 am
Parse JavaScript Variable to a XSLT Variable
 
Hi Guys!

I need help with something that I can't figure it out on my own.

I'm working with an XSLT stylesheet that constructs some URLs that are finally presented as an html page. I want to add to one of those URL a variable that I know how to create using JavaScript (it's the value from a drop down list and it's also stored in a cookie).
How should the code look like (I'll give my opinion below) ; and more important, is that possible? Isn't the XSLT parsed first and only after the JS, does the Javascript variable exists so to parse it in a XSLT variable?

Here is what I was thinking:
<xsl:variable name="my_var"><..javascript variable..></xsl:variable>

xml_looser Jun 29th, 2009 7:48 am
Re: Parse JavaScript Variable to a XSLT Variable
 
look here an example

http://forums.devshed.com/xml-progr...ipt-613064.html

fpmurphy Jul 1st, 2009 11:25 am
Re: Parse JavaScript Variable to a XSLT Variable
 
xml_looser your link to devshed is broken

xml_looser Jul 1st, 2009 12:03 pm
Re: Parse JavaScript Variable to a XSLT Variable
 
http:
//forums.devshed.com/xml-programming-19/the-power-xml-xsl-html-javascript-613064.html


All times are GMT -4. The time now is 6:01 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC