xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Becker <pbec...@meganesia.int.gu.edu.au>
Subject Re: Trancoder Exception, not an SVG Document
Date Tue, 10 Jul 2001 00:14:46 GMT
Hello David,

I ended up writing the DOM to disk and letting the transcoder use the
file. You can find some of my ranting on this topic here:

and here:

Short version: Batik often claims to use a generic DOM interface but
expects (due to RTTI checks/casts) its own implementation, even in the
method that should be used to convert the DOM.

One approach I didn't try is to use some non-Batik conversion function.
And maybe it's not too hard to fix Batiks implementation, but I stumbled
from one problem into another so I gave up (the problem is not a big one
for me).


> "Boon, David" wrote:
> I'm trying to use the Transcoding api to convert an
> org.w3c.dom.Document object to a JPEG image.  I'm using the sample
> code for the transcoder that comes with batik.
> The Document object that I'm trying to transcode is the result of an
> XSL transformation.  This document transforms when I use the
> rasterizer from the command line.  When I try to transcode this
> document using the transcoder api I get:
> "org.apache.batik.transcoder.TranscoderException: The specified XML
> document fragment is not an SVG document".  the method that looks to
> be throwing this exception is transcode(TranscoderInput,
> TranscoderOuput)...

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message