Tonny Kohar wrote:
I want to get the SVGDocument of otherImage.svg, from within the SVGDocument from the outermost SVG (loaded in the JSVGCanvas).
I am not sure, how about using correspondingElement or correspondingUseElement method from SVGElementInstance.
You can't get the image subtree with these commands.
Currently there isn't an SVG specification on how to do this. You can do it with ugly Batik specific stuff.
If you get the SVGContext from the image element (batik.dom.svg.SVGOMElement.getSVGContext()). This will be an batik.bridge.SVGImageElementBridge. This has a member called 'imgDocument' - currently this is protected, so you might have to add a getter (I'll add one to CVS). This is the SVG Document (assuming the image element references SVG.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]