Solved

call javascript output in an XSL variable

Posted on 2011-02-25
3
719 Views
Last Modified: 2012-06-27
Hello All,

I have a need to call a javascript function from xsl and store the output in an xsl variable.

I can't use <a href="javascript:somthingt()"></a>.

I am looking for something like  <xsl:variable name="newtest">
<xsl:value-of select="javascript:test()"/>
                                    </xsl:variable>
<script type=javascript>
function test(){
return "abcd";}
</script>

Where 'newtest' will contain the result of 'test' js function. i.e, abcd

Thanks,
Rohit.
0
Comment
Question by:RohitRepu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 34989723
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 35321642
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question