Thomas DeWeese wrote:
James Shaw wrote:

Batik CVS 19/03/2005

I have noticed that the SVG pretty printer handles a document like this one incorrectly:

<svg:svg svg:xmlns="http://www.w3.org/2000/svg";>
...

The pretty printer converts this to:


  Not for me I get the same thing as I get in.  It looks
to me like the document has been turned into a DOM and then
serialized at some point (the PP never adds attrs).

I am trying to pass an SVGDocument that I have created in-memory (i.e. there is no copy of it on disc) to the pretty printer.


I have extended org.apache.batik.apps.svgpp.Main and I am calling the transcoder like this:

PRETTY_PRINTER.transform(new TranscoderInput(doc), new TranscoderOutput(writer));

where doc is the SVGDocument and PRETTY_PRINTER is my extension of batik.apps.svgpp.Main. From what you say, this could be the reason for the breakage. How would you suggest I implement this?

Thanks in advance
James Shaw

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



Reply via email to