Hi Roberto,

Roberto Villarreal <[email protected]> wrote on 02/27/2009 11:40:18 
PM:

> The snippet itself is below; a compilable working example is attached.
> 

> SVGDocument doc = (SVGDocument) impl.createDocument( svg, "svg", null );

    This document doesn't have any base URL so resolving
URL's that aren't absolute will be a problem.  Since your 
URL's are relative this is likely your problem.

    You could set the base URL on that document with
batik.dom.svg.SVGOMDocument.setURLObject(URL).
This will work fine if all your content is based off
one URL.  The other thing you could do is create a group
and use the 'xml:base' attribute on the group to set the
'base' URL for resolution within that group.

Reply via email to