This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: JavaScript


> Surround your javascript with the <script> tag, an 
> <xsl:comment> tag and
> include the javascript in a CDATA section.
> 
> <script language="javascript"><xsl:comment><![CDATA[
>   function myFunction ()
>   {
>    doSomething ();
>   }
> //]]></xsl:comment></script>

What if you need to put a -- (double hyphen) in the Javascript? Or does this
never happen?


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]