Hi, I tried the example program: SVGApplication, exactly as it is published on:
http://xmlgraphics.apache.org/batik/using/swing.html I use Batik 1.7 and jdk1.6.0_01. It works OK for many svg files but when I try to open several svg files published on the wikipedia website, for example: http://upload.wikimedia.org/wikipedia/commons/e/ef/Location_United_States.svg I get the error below. However, Inkscape 0.43 (Nov 23 2005) opens it just fine. Am I missing something? Thank you. Jirka SVG Error: http://upload.wikimedia.org/wikipedia/commons/e/ef/Location_United_States.svg:79 Cannot find the referenced element: "http://upload.wikimedia.org/wikipedia/commons/e/ef/Location_United_States.svg#XMLID_384_" specified on the element <path> - may be a problem of 'id' org.apache.batik.bridge.BridgeException: http://upload.wikimedia.org/wikipedia/commons/e/ef/Location_United_States.svg:79 Cannot find the referenced element: "http://upload.wikimedia.org/wikipedia/commons/e/ef/Location_United_States.svg#XMLID_384_" specified on the element <path> - may be a problem of 'id' at org.apache.batik.bridge.BridgeContext.getReferencedNode(BridgeContext.java:754) at org.apache.batik.bridge.BridgeContext.getReferencedElement(BridgeContext.java:796) at org.apache.batik.bridge.PaintServer.convertURIPaint(PaintServer.java:351) at org.apache.batik.bridge.PaintServer.convertPaint(PaintServer.java:259) at org.apache.batik.bridge.PaintServer.convertFillPaint(PaintServer.java:228) at org.apache.batik.bridge.PaintServer.convertFillAndStroke(PaintServer.java:146) at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(SVGShapeElementBridge.java:117) at org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createFillStrokePainter(SVGDecoratedShapeElementBridge.java:58) at org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createShapePainter(SVGDecoratedShapeElementBridge.java:84) at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(SVGShapeElementBridge.java:91) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:224) at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171) at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82) at org.apache.batik.swing.svg.GVTTreeBuilder.run(GVTTreeBuilder.java:96) ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
