Title: Re: SVG Problem with FOP
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.
-----Original Message-----
Sent: Wednesday, January 30, 2002 8:01 PM
Subject: Re: SVG Problem with FOP

At 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,
<svg width="3.5in" height="1in" viewBox="0 0 680 200" xmlns="
http://www.w3.org/2000/svg <http://www.w3.org/2000/svg> "
   <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)"/>
  <rect fill="black" stroke="black" x="0" y="0" width="680"
  <circle r="80" cx="270" cy="100" fill="url(#PurpleToWhite)"/>
  <text font-family="Times" font-size="135pt" x="213" y="160"

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 be
able to step through the code in a debugger and get a clearer idea
of exactly what I/O error occured. Also check the bug lists as it is
possible that FOP has special requirements for specifying URIs.


Reply via email to