I have an application that generates a map as an SVG document, and which then uses the FOP PDFTranscoder to produce a PDF file. But I get the following error:
$ java -Xmx3072M -jar electricengine.jar org.apache.batik.bridge.BridgeException: http://www.aiglondon.com/livingMap.svg:-1 The attribute "y" of the element <text> is invalid at org.apache.batik.bridge.SVGTextElementBridge.getLocation(Unknown Source) at org.apache.batik.bridge.SVGTextElementBridge.createGraphicsNode(Unknown Source) at org.apache.fop.svg.AbstractFOPTextElementBridge.createGraphicsNode(AbstractFOPTextElementBridge.java:60) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:193) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at com.aiglondon.LivingMap.process.SimpleProcessor.doProcess(SimpleProcessor.java:173) at com.aiglondon.LivingMap.application.ElectricEngine.doWork(ElectricEngine.java:26) at com.aiglondon.LivingMap.application.ElectricEngine.main(ElectricEngine.java:18) fop/trunk batik 1.7 java 1.6 What does the "-1" mean? What constitutes an invalid value for the y attribute of the text element? (And O, how I wish it would tell me *which line* of the SVG caused it to fail!) Any pointers? Thanks, Martin Appied Information Research Great Sutton Street London EC1 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
