Hello,

Batik seems to write duplicated IDs if version="1.2" is used in the svg root element. I have this svg root:

        <svg xmlns="http://www.w3.org/2000/svg";
                xmlns:xlink="http://www.w3.org/1999/xlink"; version="1.2"

And I use batik to read and write out the document without modifications:

    String parser= XMLResourceDescriptor.getXMLParserClassName();
    SAXSVGDocumentFactory f= new SAXSVGDocumentFactory(parser);
    Document doc = f.createDocument(uri);

    SVGGraphics2D svgGenerator= new SVGGraphics2D(doc);
    Writer out= new OutputStreamWriter(new FileOutputStream(outfile)));
    svgGenerator.stream(doc.getDocumentElement(), out);
    out.close();

Regards
Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to