469,950 Members | 1,681 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

I need to pass some value from XSL to javascript.

2
I need to pass some value from XSL to javascript.
For the reasons it is inpossible to use xsl:param and xsl:variable.
There is some ‘if’ conditions in XSL that would modify that value.
I create id in my HTML.

Expand|Select|Wrap|Line Numbers
  1. <TABLE ALIGN ID="Table2">
  2.     <TR>
  3.         <td id="hasValue"/>
  4.     </TR>                        
  5. </TABLE>

Now I would like to save the data into that column.

Expand|Select|Wrap|Line Numbers
  1. <xsl:if test="$action = 'update'">
  2. <!—insert 0 into “hasValue”-->
  3. </xsl:if>
How can I do this?
And then I will be able to read that value in javascript.
Oct 12 '05 #1
0 2364

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Al C. | last post: by
1 post views Thread by jiing.deng | last post: by
7 posts views Thread by Jack Addington | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.