xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Kennard <rich...@kennardconsulting.com>
Subject REGRESSION: embedded SVG support in 0.92beta compared to 0.91beta
Date Sun, 30 Apr 2006 03:29:06 GMT
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 <rect> 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 <rect> is required
org.apache.batik.bridge.BridgeException: file:/C:/jboss-4.0.4.CR2/bin:-1
The attribute "width" of the element <rect> 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.instruct.Template.processLeavingTail(Template.java:79)
    at 
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:290)
    at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:169)
    at 
net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:133)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:90)
    at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:162)
    at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:283)
    at net.sf.saxon.instruct.Template.expand(Template.java:95)
    at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:79)
    at 
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:290)
    at 
net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:325)
    at 
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:283)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1406)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:125)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    at 
net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:167)
    at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:88)
    at 
net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:454)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1432)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:125)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message