In reply to:I am trying to setup LiveSite2.1. I am trying to create a component on livesite development server and in that component I need to include JavaScript.Any idea how do we include the JavaScript in Appearance XSL.I tried to use <xsl:script> tag but this tag is not supported by XSL1:0 which is being used for creating components. I am not sure how far its gud to use msxml tag becasue then it can be browser dependent.
<xsl:template match="/"> <script type="text/javascript" src="$URL_PREFIX/js/api.js"></script></xsl:template>
In reply to:Thanks for your reply but I used it using Javascript in CDATA section and its working for me that way as well.
<xsl:template match"/"> <script type="text/javascript"> <![CDATA[ var foo = "hello there, this is a way to JS in XSL"; alert(foo); ]]> </script> <!-- i thikn this will also work, but not sure --> <script type="text/javascript"> <xsl:text> var foo = "hello there, this is a way to JS in XSL"; alert(foo); </xsl:text> </script></xsl:template>