Reputation: 595
I have an xsl where I have to include a javascript, for which the src link is received from a web service response.
The service response xml looks like this:
<value>
<scripturl>http://www.example.com/js/example.js?apikey=12345</scripturl>
</value>
and the script tag I have added in the xsl (I already have read the scripturl
value in xsl and set in xsl variable named scripturlxsl
) looks like this:
<script type="text/javscript" src="{scripturlxsl}"></script>
How would I make it work, as the page is not loading the script
Upvotes: 1
Views: 761
Reputation: 101730
If the script url value is already in a variable, then this is what you would do:
<script type="text/javscript" src="{$scripturlxsl}"></script>
Upvotes: 2