Hi Cristina,

   My response is inline below.

Cristina Stoica <[EMAIL PROTECTED]> wrote on 10/09/2006 11:11:47 AM:

> I am new in working with Batik and I'm stuck. I am trying to generate a 
svg
> file from n svg files (each svg file is a layer for the final image) in 
a
> desktop application. So I must have one svg file as the base file (it 
will
> contain the background of the image I am trying to generate in the end).
> Each new layer (svg file) must be embeded in the previous one.
> I found on this forum a description of how to add an element to a
> SVGDocument when the element is given as a string of SVG code. But I am
> getting the following error:
> 
> java.lang.RuntimeException: Unknown document
>    at org.apache.batik.bridge.BridgeContext.getInterpreter(Unknown 
Source)
> 
> and the application crashes because it does not know what is
> "text/ecmascript".

   I don't think this is correct.  The 'Unknown document' exception is 
generated when a 'getInterpreter' is called on a BridgeContext that
is not associated with a Document.  So I suspect your code is doing
something wrong.  Can you post the code you use to append your layers
to the base document?

> I also read on this forum that for Batik 1.6 there is a script
> initialization problem when running Webstart.

   Can you give a pointer to this?  I'm not remembering this.
We used to have issues running as a Applet but I think that has
been fixed.

> Do you think my approach is correct? Is there a better way for what I am
> trying to do? Should I continue and try to resolve the script problem?

   There shouldn't be any problem appending new SVG content to a
base SVG document so I think you are likely going down the right
path but you probably have some bug in your code.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to