There are many forms to do that.I prefer to put the javascript in another file, then load it with:
<script type="text/javascript" src="resources/myscript.js"></script> Then in the site map I have: <map:match pattern="resources/**.js"> <map:read mime-type="application/x-javascript" src="resources/styles/{1}.js"/> </map:match> And the myscript.js is stored inside the directory: $ROOT_OF_MY_APP/resources/styles I think this is better because I dont need to use the CDATA tag. Antonio Gallardo El Viernes, 20 de Septiembre de 2002 07:11, Gabor Bartha escribió: > 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. > > Gabor > > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]>