-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 4:21 PM
To: [EMAIL PROTECTED]
Subject: Re: quotation mark gets changed into '
> Gurleen Randhawa wrote:
> > I am trying to add the following event attribute on a circle , but when
> > the HTML is produced the single quotation mark changes to ' .
>
> Who is producing the HTML? What you are showing modifies the
> DOM in memory is sounds like you are then serializing that to a
> browser. Who is serializing the DOM?
Sorry: misunderstanding. It's actually the SVG which is getting serialized:
The SVGTranscoder is doing the serialization (which is used to get
pretty-printing, but otherwise unnecessary).
SVGDocument doc = ...;
SVGTranscoder transcoder = new SVGTranscoder();
TranscoderInput in = new TranscoderInput(doc);
TranscoderOutput out = new TranscoderOutput(
new OutputStreamWriter(
sc.getCurrentOutputStream() ) );
transcoder.transcode(in, out);
> > I tried the following code
> >
> > svgEllipse.setAttributeNS(null, "onclick" , "showDialog('onmouseout')" );
> >
> > and
> >
> > svgEllipse.setAttributeNS(null, "onclick" , "showDialog(\'onmouseout\')" );
> >
> > BUT when I view it in the browser I see it as
> >
> > onclick="showDialog('onclick')
> >
> > I was trying to implement the example stated on the batik website.
> >
> > http://xml.apache.org/batik/scripting.html#howToUseScripting
> > <http://xml.apache.org/batik/scripting.html#howToUseScripting>
> >
> > Thanks
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]