Carl,
Use a text element and disable output escaping
See example below:
<xsl:text disable-output-escaping="yes">
function clickLink1(){
top.location = group1links[group1Size]
}
function clickLink2(){
top.location = group2links[group2Size]
}
</xsl:text>
Adam
On Mar 7, 2005, at 8:26 AM, Carl Barrow wrote:
> Hi Alex
>
> I have had to incorporate a javascript menu into one of my templates
> because Marketing have used it on the University Site. I don't have a
> problem adding it to the template, the page builds without problem.
> However, some of the code is being escaped on output :
>
> if (r && (!chain || r.chain==chain) && r.msg==msg)
>
> becomes
>
> if (r && (!chain || r.chain==chain) && r.msg==msg)
>
> The output method is set to html in my template and I've used CDATA
> tags round all javascript.
> Do you have any idea how I might overcome this?
>
> Thanks
> Carl
>
> --
> ************************************
>
> Carl Barrow
> Web Developer
> e-Services
> The University of Hull
> Cottingham Road
> Hull
> HU6 7RX
> Ext. 6838
> ************************************
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
> users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Hypercontent-users mailing list
> Hyp...@li...
> https://lists.sourceforge.net/lists/listinfo/hypercontent-users
>
Adam Carl
AIS Web Services
(212) 854-0131
ac...@co...
|