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>

Recommended Answers

All 3 Replies

xml_looser your link to devshed is broken

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.