mmm, I don't see where you need to use < and > tags.
To make sure your javascript remains untouched, you could put the code in a
CDATA section:
<script language="javascript">
<![CDATA[
  if (document.all) {
      ...
  }
]]>
</script>

Koen.

> -----Oorspronkelijk bericht-----
> Van: Barbara Post [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 29 augustus 2002 11:01
> Aan: [EMAIL PROTECTED]
> Onderwerp: bug with javascript ?
>
>
> c203.
>
> My XSL contains some javascript :
>
> Is it normal that when I look at the source of my html output  I see the
> full code (in the body part) written out ?
>
> i.e. :
>
> <script language="javascript">if (document.all){
> document.writeln('<object id="factory"
> classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
> codebase="ActiveX/ScriptX.cab#Version=\'5,0,4,15\'"></object>');
> document.writeln('<p align="center"><input name="idPrint" type="button"
> value="Print" onClick="javascript:printSheet();"/></p>');
> }</script>
>
> I see the "Print" input but this seems strange. In the xsl I used &lt; and
> &gt; tags, but otherwise the bit of code is identical. Thanks, and sorry
> whether this is off-topic...
>
> Babs
>
>
> ---------------------------------------------------------------------
> 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]>

Reply via email to