Robert Casties wrote:

Thomas DeWeese wrote:

   Essentially you want to do everything in
batik.transcoder.SVGAbstractTranscoder.transcode method (you
may want to subclass from it) The important thing is that
'isDynamic' must be true otherwise the 'getGraphicsNode' call
will fail (you may not want to run onload scripts!)


Should I rather start with the "root" field from SVGAbstractTranscoder after its transcode() method? It seems to do all the necessary preparations.

The problem is that the 'root' field is the GVT tree. The existing code walks the DOM tree, so unless you want to seriously rework your code you need to stick with that. What you will be doing is walking the DOM tree and then 'looking up' the associated node in the GVT tree (under 'root').

   One issue is if the transcode method 'imports' the given
Document I'm not sure you can access the imported Doc (you
could use BridgeContext.getElement(root) to get the root DOM
Element I suppose)

I shall have another look at it...

Good luck!




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



Reply via email to