You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Bhavya Sharma <bh...@gmail.com> on 2006/10/04 14:09:11 UTC

how 2 access XSL var in JS

hi devs


i want to know that how can i access xsl variable in javascript ,





-- 
With-
Thanks and Regards

Bhavya Sharma

Re: how 2 access XSL var in JS

Posted by Jörn Nettingsmeier <po...@uni-duisburg-essen.de>.
Bhavya Sharma wrote:
> hi devs
>  
>  
> i want to know that how can i access xsl variable in javascript ,

i assume you mean javascript on the client, not in a flowscript.

you can do this:

<xsl:template match="<whatever>">
    <script type="text/javascript">
        yourJavascriptVar = <xsl:value-of select="$yourXSLVar"/>;
    </script>
</xsl:template>


hth,

jörn


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org