Thanks
for the reply.
The
file does not exist, except in memory. I create the XSL-FO from a
transformation and then directly feed that Document to FOP in my servlet (I'm
not using the command-line version of FOP). The SVG is contained in the
document and the url reference is local to the document.
Scott
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 8:01 PM
To: [EMAIL PROTECTED]
Subject: Re: SVG Problem with FOPAt 10:43 am -0500 25/1/02, Scott Moore wrote:I'm trying to embed the following SVG into my XSL-FO and run it thru
FOP (0.20.3rc). Although the SVG looks fine using Adobe's SVG viewer and Batik's viewer, I get an
error (below) from FOP. Apparently, it doesn't like the url() reference
to the <radialGradient>. How can I get this to work?
Thanks for any help,
Scott
<svg width="3.5in" height="1in" viewBox="0 0 680 200" xmlns="
http://www.w3.org/2000/svg <http://www.w3.org/2000/svg> "
preserveAspectRatio="none">
<g>
<defs>
<radialGradient id="PurpleToWhite" gradientUnits="objectBoundingBox"
cx=".5" cy=".5" r=".5">
<stop offset="5%" stop-color="white"/>
<stop offset="100%" stop-color="rgb(100,0,100)"/>
</radialGradient>
</defs>
<rect fill="black" stroke="black" x="0" y="0" width="680"
height="200"/>
<circle r="80" cx="270" cy="100" fill="url(#PurpleToWhite)"/>
<text font-family="Times" font-size="135pt" x="213" y="160"
fill="white">D</text>
</g>
</svg>
An I/O error occured while processing the URI'file:D:/Projects/Dev/#PurpleToWhite' specified on the element <circle>Are you sure that file that you have requested exists? You might beable to step through the code in a debugger and get a clearer ideaof exactly what I/O error occured. Also check the bug lists as it ispossible that FOP has special requirements for specifying URIs.Ben.