Hi Hanspeter,
The XSL stylesheet is processed by the XSLT processor used (probably 
Xalan) and not by Cocoon. Anyway, if you like to include some 
JavaScript, you should use <xsl:comment> around the Script code. Then 
output-escaping will not be an issue. For example, write:

    <xsl:comment>
      <!-- if (
         location.host.tolowercase().indexof("ibiblio")
         &lt; 0) {
           location.href="http://www.ibiblio.org/xml/";;
        }
      } // -->
    </xsl:comment>

Best Regards,
Mario Muja



Amend, Hanspeter {PDN~Tokyo} wrote:

>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">
>      &lt;!-- if (
>         location.host.tolowercase().indexof("ibiblio")
>         &lt; 0) {
>           location.href="http://www.ibiblio.org/xml/";;
>        }
>      } // --&gt;
>    </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]>
>
>



---------------------------------------------------------------------
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]>

Reply via email to