The command-line of FOP uses the directory of the source XML file (not the stylesheet) as base directory/URL. If your stylesheet is not in the same directory as the XML file FOP won't find it if you don't specify an explicit base directory in the config file. So, the work-around for you at the moment is to explicitely set the base URL in the config file (Element: "base").
If I'm thinking about it, it is probably a bad idea to use the XML file as base URL source when a stylesheet is used. Normally, you'd place the resources for a stylesheet relative to the stylesheet, not the source XML file. fop-devs, what do you think? It would be easy to fix. On the other side, 0.20.5 seems to do the same (see Options.setCommandLineOptions). On 10.01.2006 09:38:03 Andreas Grund wrote: > Hi, > > i create a stylesheet containing the following source: > > <fo:table-cell column-number="1"> > <fo:block><fo:external-graphic src="bild1.gif" > content-width="75mm"/></fo:block> > </fo:table-cell> > > Everytime i try to publish my xml-file using my stylesheet i got the > error message: image not available: bild1.gif. But the image file is > stored in the same folder as the stylesheet. Why does Fop not found the > image? I use fop 0.91.beta with all jars found in the downloadfile: > fop-0.91beta-bin-jdk1.4.zip. Do I need some further jars to enable gif > support in FOP? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]