Including images from a servlet

2004-01-20 Thread Richard Sweeney
Hi, I'm using FOP with a servlet. The servlet generates XML which is then translated using XSL or, if the user clicks print, will take the XML and generate a PDF. In the XSL-FO I have an image that appears in the produced PDF and reference it like so: fo:external-graphic src=url(logo.jpg)/ if I

Re: Including images from a servlet

2004-01-20 Thread Chris Bowditch
Richard Sweeney wrote: snip/ fo:external-graphic src=url(path/to/file/logo.jpg)/ is there a way to make it search for the image in the current directory, i.e. the same one as the XSL-FO stylesheet? You can set the base directory for which relative paths will be resolved against. This can be done

RE: Including images from a servlet

2004-01-20 Thread mathieu . fretiere
URL : unknown protocol: c Well, 'c' is not a protocol, you should try something like : file:C:///stylesheets/fop or url('file:C:///stylesheets/fop') I'm no sure, experts will tell you more Mathieu - To unsubscribe, e-mail:

Re: Including images from a servlet

2004-01-20 Thread J.Pietschmann
Richard Sweeney wrote: [ERROR] Error while creating area : Invalid Image URL - error on relative URL : unknown protocol: c ---(that's actually where the message ends) Check the FAQ: http://xml.apache.org/fop/faq.html#MalformedURLException J.Pietschmann