Parse JavaScript Variable to a XSLT Variable

Reply

Join Date: Jun 2009
Posts: 1
Reputation: athlonica is an unknown quantity at this point 
Solved Threads: 0
athlonica athlonica is offline Offline
Newbie Poster

Parse JavaScript Variable to a XSLT Variable

 
0
  #1
Jun 29th, 2009
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>
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 44
Reputation: xml_looser is an unknown quantity at this point 
Solved Threads: 2
xml_looser xml_looser is offline Offline
Light Poster

Re: Parse JavaScript Variable to a XSLT Variable

 
0
  #2
Jun 29th, 2009
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 95
Reputation: fpmurphy is an unknown quantity at this point 
Solved Threads: 5
fpmurphy fpmurphy is offline Offline
Junior Poster in Training

Re: Parse JavaScript Variable to a XSLT Variable

 
0
  #3
Jul 1st, 2009
xml_looser your link to devshed is broken
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 44
Reputation: xml_looser is an unknown quantity at this point 
Solved Threads: 2
xml_looser xml_looser is offline Offline
Light Poster

Re: Parse JavaScript Variable to a XSLT Variable

 
0
  #4
Jul 1st, 2009
http:
//forums.devshed.com/xml-programming-19/the-power-xml-xsl-html-javascript-613064.html
Last edited by xml_looser; Jul 1st, 2009 at 12:06 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC