REGRESSION: embedded SVG support in 0.92beta compared to 0.91beta
Dear All, There seems to have been a regression in embedded SVG support between 0.92beta and 0.91beta? Using Cocoon 2.1.8, Saxon 8, Batik 1.6 and FOP 0.91beta my FOP with embedded SVG renders well. However upgrading to 0.92beta (and keeping everything else the same) gives me a stack trace (see below). I have checked and all elements definitely do have a "width" attribute (and besides it renders fine in 0.91beta). Interestingly the problem is related to upgrading FOP (not Batik). Thanks for an excellent product, Richard. THE STACK TRACE: 2006-04-30 12:42:46,843 ERROR [org.apache.fop.render.pdf.PDFSVGHandler] svg graphic could not be built: file:/C:/jboss-4.0.4.CR2/bin:-1 The attribute "width" of the element is required org.apache.batik.bridge.BridgeException: file:/C:/jboss-4.0.4.CR2/bin:-1 The attribute "width" of the element is required at org.apache.batik.bridge.SVGRectElementBridge.buildShape(Unknown Source) at org.apache.batik.bridge.SVGShapeElementBridge.createGraphicsNode(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.fop.render.pdf.PDFSVGHandler.renderSVGDocument(PDFSVGHandler.java:181) at org.apache.fop.render.pdf.PDFSVGHandler.handleXML(PDFSVGHandler.java:80) at org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java:843) at org.apache.fop.render.pdf.PDFRenderer.renderDocument(PDFRenderer.java:1475) at org.apache.fop.render.pdf.PDFRenderer.renderForeignObject(PDFRenderer.java:1440) at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:743) at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:551) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:634) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:609) at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1017) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:535) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:525) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:525) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:525) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:430) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:409) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:343) at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:288) at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:261) at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:235) at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:648) at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:119) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:703) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:154) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:320) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:147) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:357) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:193) at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:111) at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:286) at net.sf.saxon.event.ProxyReceiver.endElement(ProxyReceiver.java:172) at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:204) at net.sf.saxon.event.ComplexContentOutputter.endElement(ComplexContentOutputter.java:389) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:165) at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:283) at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:283) at net.sf.saxon.instruct.Template.expand(Template.java:95) at net.sf.saxon.instru
Re: REGRESSION: embedded SVG support in 0.92beta compared to 0.91beta
Dear All, You guys are absolute legends. Thank you so much for acting so quickly and being so thorough. I look forward to what Mr. Kay has to say :) Richard. Jeremias Maerki wrote: Bug is filed against SAXON including patch: http://sourceforge.net/tracker/index.php?func=detail&aid=1483350&group_id=29872&atid=397617 Let's see what happens. On 07.05.2006 15:06:10 Florent Georges wrote: Jeremias Maerki wrote: No, I did not, but I think the whole thing will be resolved more quickly if I write the necessary patch for SAXON and submit that with the error description. But first, I want to look at the PDF size problem. Ok, thanks a lot. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]