>>>>> "NH" == Nicholas Hemley <[EMAIL PROTECTED]> writes:
NH> Hello I have a servlet that performs an XSL transformation on an
NH> SVG template in order to draw dynamic graphs.
NH> My problem is this: When I output an SVG textfile from the servlet
NH> and load this using Internet Explorer+SVGViewer3.0 the picture is
NH> fine. But when I use Batik to generate a JPEG from the SVG, it
NH> creates a mess. Am I doing something wrong? Am I using unsupported
NH> features? I enclose the SVG and generated JPEG so you can see
NH> exactly what is happening...any help would be appreciated.
Well the SVG is really nasy, it has lots of Adobe specific
nonsense in it. However the problem is that Batik is ignoring the
'transform' attribute on the switch element. In this case it's really
simple to get rid of since it's only used in two places.
One seems to place the image (NHS Lothian) 'off canvas' (outside
the viewbox). So the whole switch can simply be deleted (near the top
of the file)
The other has a transform and it's child is a g with the inverse
transform so both the transforms can go (this is why the graph doesn't
show up).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]