- From: Koch, Anthony <Anthony.Koch@cognos.com>
- Date: Sun, 6 Apr 2003 16:07:51 -0400
- To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
- Message-ID: <BF85C64585F2D61190EF0002A5CE6F3401508796@sottexch2.cognos.com>
> Hi, > > I'm using FOP 0.20.5rc2. When running within Tomcat, I am applying XSL:FO > against XML. > But the transformation fails to find the URL for an SVG reference I have. > > The error is: > [ERROR] Error while creating area : Error with image URL: > file(historyChart.svg) (The system cannot > find the file specified) and no base URL is specified > > In XSL, I tried setting url based on absolute path: > > </fo:block> > > <fo:block> > <!--url(file://historyChart.svg) --> > <!--url(file:///D:/historyChart.svg) --> > <!--file:///D:/historyChart.svg --> > > <fo:external-graphic xmlns:svg="http://www.w3.org/2000/svg" > src="file(historyChart.svg)"/> > </fo:block> > > These don't work. > > I tried getting the base url , but getInstance() does not seem to be > available (get compile error) > org.apache.fop.configuration.Configuration.getInstance().getBasePath() > > How do I set the base url ? > Where is the default base directory? > > Thanks, > > Anthony > This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
Received on Sunday, 6 April 2003 16:10:55 UTC