You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Katiyar, Bhawana" <Bh...@workscape.com> on 2002/03/25 23:13:33 UTC
error while including svg in fop
I wish to include an external svg file in xsl:fo document.
I have the following lines in my xsl file:
<fo:instream-foreign-object>
<svg:svg>
<svg:image xlink:href="file:d:\circle.svg"
image-rendering="optimizeQuality"
x="0" y="0" width="78mm" height="78mm"/>
</svg:svg>
</fo:instream-foreign-object>
But while rendering I get the following error:
building formatting object tree
WARNING: property 'image-rendering' ignored
setting up fonts
formatting FOs into areas
[1]
rendering areas to PDF
using element mapping org.apache.fop.svg.SVGElementMapping
using property list mapping org.apache.fop.svg.SVGPropertyListMapping
using SAX parser org.apache.xerces.parsers.SAXParser
building svg tree
WARNING: no Maker for writing-mode
WARNING: property writing-mode ignored
WARNING: no Maker for writing-mode
WARNING: property writing-mode ignored
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
at org.apache.fop.svg.SVGDriver.buildSVGTree(SVGDriver.java:223)
at
org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:85)
at
org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav
a:65)
at
org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact
ory.java:87)
at
org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:117)
at
org.apache.fop.render.pdf.SVGRenderer.renderImage(SVGRenderer.java:8
Thanks in advance!
Bhawana
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: error while including svg in fop
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Katiyar, Bhawana wrote:
> I wish to include an external svg file in xsl:fo document.
> I have the following lines in my xsl file:
>
> <fo:instream-foreign-object>
> <svg:svg>
...
> java.lang.NullPointerException
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
> at org.apache.fop.svg.SVGDriver.buildSVGTree(SVGDriver.java:223)
Did you declare the svg namaspace somewhere?
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org