You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Mi...@swisscom.com on 2002/03/19 09:09:37 UTC
Problem: passing String parameters with newlines to ECMA script
Hello everybody,
I am enjoing the dynamic characteristics of the new Batik and implemented an own extention of the Ecma Script interpreter.
The problem I am faced to is:
I want to call an EcmaScript function (which I defined in the SVG) and pass String parameters to it. If these parameters contain newlines, then the Ecma Script Interpreter will break. Is this a known problem ? Is there a way to avoid that without removing the newlines ?
Greetings
Michele
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: Problem: passing String parameters with newlines to ECMA script
Posted by Christophe Jolif <cj...@ilog.fr>.
Michele,
Batik is using Rhino (the Mozilla Java ECMAScript engine) to interpret the
piece of script, so I guess that if the problems occurs in Batik it is due to
Rhino...
Michele.Laghi@swisscom.com wrote:
> Hello everybody,
> I am enjoing the dynamic characteristics of the new Batik and implemented an own extention of the Ecma Script interpreter.
>
> The problem I am faced to is:
> I want to call an EcmaScript function (which I defined in the SVG) and pass String parameters to it. If these parameters contain newlines, then the Ecma Script Interpreter will break. Is this a known problem ? Is there a way to avoid that without removing the newlines ?
>
> Greetings
> Michele
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>
>
--
Christophe
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
RE: Problem: passing String parameters with newlines to ECMA script
Posted by Thierry Kormann <tk...@ilog.fr>.
> I am enjoing the dynamic characteristics of the new Batik and
> implemented an own extention of the Ecma Script interpreter.
>
> The problem I am faced to is:
> I want to call an EcmaScript function (which I defined in the
> SVG) and pass String parameters to it. If these parameters
> contain newlines, then the Ecma Script Interpreter will break. Is
> this a known problem ? Is there a way to avoid that without
> removing the newlines ?
Have you tried to use a Reader instead of a String?
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org