Using a JavaScript Variable in XSL

webmasterbeta

New Member
Hello I dont know which section to place this...so its coming in here.

I have a JavaScript function that that does some stuff thats not important.

What I want to do is use this variable in the XSL.

This is my XSL:


<xsl:value-of select="/Page/Contents/Contact[@name='JavaScriptVariableHere']/Company"/>


I have lots of lines like this, but they all end differently e.g above is /Company.
So I dont want to have to write the XSL inside the JavaScript.

Any help would be greatly appreciated...

Will
 
Back
Top