Yes, it supports relative, but relative URLs not relative file paths.  So,
what you want it:

 

file:pdf_test

 

and

 

file:pdf_test/pdf_fonts

 

Good Luck,

 

Ted

 

 

  _____  

From: Preuss, Jacqueline - ENCOWAY [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 4:26 AM
To: fop-users@xmlgraphics.apache.org
Subject: MalformedURLException when using relative paths

 

Hi!

 

We're just upgrading from fop_0.92 to fop_0.95beta. In our Fop Configuration
File we defined a base and a font-base like this:

 

<base>./pdf_test</base>

<font-base>./pdf_test/pdf_fonts</font-base>

 

With 0.92 everything works fine but with the newer version we get the
following exception:

 

java.net.MalformedURLException: no protocol: ./pdf_test/

                at java.net.URL.<init>(URL.java:567)

                at java.net.URL.<init>(URL.java:464)

                at java.net.URL.<init>(URL.java:413)

                at
org.apache.fop.apps.FopFactory.checkBaseURL(FopFactory.java:339)

                at
org.apache.fop.apps.FopFactory.setBaseURL(FopFactory.java:355)

                at
org.apache.fop.apps.FopFactoryConfigurator.configure(FopFactoryConfigurator.
java:116)

                at
org.apache.fop.apps.FopFactoryConfigurator.setUserConfig(FopFactoryConfigura
tor.java:231)

                at
org.apache.fop.apps.FopFactoryConfigurator.setUserConfig(FopFactoryConfigura
tor.java:203)

                at
org.apache.fop.apps.FopFactory.setUserConfig(FopFactory.java:637)

 

Are relative paths not allowed anymore? What can we do to solve this? Are
there any suggestions available?

 

Regards,

Jacqueline.

Reply via email to