Include JS in the master from a list outside the master
This is an open discussion with 3 replies, filed under XSLT.
Search
Thanks a lot vladG!
Didn't think of templates. For me, the best choice now! This is the working code now:
<xsl:template name="head"> <script type="text/javascript" src="../inc/jquery-1.3.min.js"></script> </xsl:template>
Just a curiosity. Are not allowed html elements inside xsl:variable?
Yes they are allowed.
Create an account or sign in to comment.
I want to choose what js will be included for every page.
I think i need to put the <script src> values in that variable and call that variable in the master.xsl in the
The following code is not working: