You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luca Palli <lp...@INSER.CH> on 2001/01/30 17:10:41 UTC

JavaScript in XML (SVG)

I transform a XML data page in a SVG graphic page, and I'll add some
JavaScript in the SVG.

Simple:

<polyline style="fill:none; stroke:black; stroke-width: 0.3 " id="gs1"
points="2,176 56,160" onmouseover="mouse_over('gs1')"/>

But i can't write the ' character, Cocoon convert it to &apos;. I've tested
multiple solutions <xsl:text... , <![CDATA[..., ... but Cocoon give me
always &apos;!

-----------------------------------------------------
| Luca Palli           http://diwww.epfl.ch/~lpalli |
| mailto:lp@inser.ch      mailto:Luca.Palli@epfl.ch |
|                                                   |
| INSER SA                      http://www.inser.ch |
| Ch. de Maillefer 36, CH-1052 Le-Mont-sur-Lausanne |
| Tel +41 (0)21 643 77 11   Fax +41 (0)21 643 77 10 |
-----------------------------------------------------

Re: JavaScript in XML (SVG)

Posted by Paul Russell <pa...@luminas.co.uk>.
* Luca Palli (lp@INSER.CH) wrote :
> I transform a XML data page in a SVG graphic page, and I'll add some
> JavaScript in the SVG.
> Simple:
> <polyline style="fill:none; stroke:black; stroke-width: 0.3 " id="gs1"
> points="2,176 56,160" onmouseover="mouse_over('gs1')"/>
> But i can't write the ' character, Cocoon convert it to &apos;. I've tested
> multiple solutions <xsl:text... , <![CDATA[..., ... but Cocoon give me
> always &apos;!

What formatter are you using? Looks like you're using the HTML one
instead of XML...


Paul.

-- 
Paul Russell                                 Email:   paul@luminas.co.uk
Technical Director                             Tel:  +44 (0)20 8553 6622
Luminas Internet Applications                  Fax:  +44 (0)870 28 47489
This is not an official statement or order.    Web:    www.luminas.co.uk