Gabor Bartha wrote:
> Hi,
>
> How can I insert javascript into my generated html by xsl?
> I would like my final html like this:
> <body>
> <head>
> <script language="javascript">
> <!--
> ..
> ..
> ..
> //-->
> </script>
>
> I have an xsp and an xsl stylesheet to generate the html.
Apart from putting the Javascript in an external file, as has already
been suggested, you could do like follows:
<script language="javascript">
<xsl:comment>
... Javascript code goes here ...
</xsl:comment>
</script>
Ugo
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>