Using FOP, I succesfully wrote a servlet to generate PDF's from in-memory DOM object's containing XSL-FO markup.
I able to embed graphics files by specifying a physical path as in:
<fo:external-graphic src="url(/project/img/image.gif)"/>
However, since this is a web application, I need to be able to specify a relative path for the image file.
You can define baseDir property (see faq howto) as getServletContext().getRealPath("/project/img") and then use relative pathes in fo:external-graphic.
-- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]