I've tried the ('<'+'head>') without success... sorry. I've also tried including the function in a separate file, but with the same lack of result - at the end, I think, because, its also processed by Cocoon - and, even if this did work, its only a quick fix because, in some cases, the javascript itself must be dynamically changed *in context*
Any other ideas as to how to disable this activity by Cocoon ('good' is, of course, relative...) Derek >>> [EMAIL PROTECTED] 22/03/2002 02:50:05 >>> Derek Hohls wrote: > write('<html>'); > write('<head>'); > in the XSL file, and causing it to become: I think it's because cocoon sees the tags, not the context. Rather, to cocoon, the tags are the context and the rest is just so much content. Probably a good thing generally, but it's hurting you here. Have you tried write('<'+'head>');? Not sure if that will work as a quick fix, or whether this mysterious <'+'head> tag will cause trouble. You probably want your Javascript in a different file anyway, though. Hope that helps, -- MJR ,---------------------------------------------------- | Q. Do you need a net-based application developing, | or advice and training about web technology? | A. I suggest you try http://www.luminas.co.uk/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>