I would like to have an xsl file generate an HTML containing Javascript.
Cocoon rejects output-escaping.
<xsl:template match="SCRIPT">
<script language="javascript">
<xsl:text disable-output-escaping="yes">
<!-- if (
location.host.tolowercase().indexof("ibiblio")
< 0) {
location.href="http://www.ibiblio.org/xml/";
}
} // -->
</xsl:text>
</script>
</xsl:template>
thanks,
Hanspeter Amend
---------------------------------------------------------------------
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]>