If you are streaming XML, then how do you have a classpath to consider? Your responses up to this point imply that a CLIENT is receiving XML from a DB, then running an XSLT transform, followed up by FOP processing. If this is the case, your client-side processing can determine where the images reside and pass a global variable into the XSLT transform.
If the DB you refer to is on the same machine, then again you know where the images reside. I think you are confusing the fact that FOP happens to be coded in Java as a reason why FOP should be searching CLASSPATH for images. FOP is following XSL-FO rules for processing, not Java-centric rules for CLASSPATH. Since you are aware of what a CLASSPATH is, I assume you can code in Java. Assuming that is true, then it is but a small step for your client application to pass in a global variable to the XSLT engine you are using. Then again, I really don't understand your problem domain. -----Original Message----- From: Danny [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 2:38 PM To: [EMAIL PROTECTED] Subject: RE: external-graphic src problem So in my case, because the xml is streamed from the db and therefore doesn't reside in a directory I have no base to specify the relative path to the image from, which in most cases would be the XML file's directory? Danny Gallagher Senior Software Engineer The Gainer Group 6075 The Corners Parkway Suite 116 Norcross Ga, 30092 -----Original Message----- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 1:48 PM To: [EMAIL PROTECTED] Subject: Re: external-graphic src problem On Jul 23, 2004, at 10:40 AM, Danny wrote: > Still not quite, I'm still missing something: > > Question, in your example: > <xsl:variable name="varImagesDirectory">/path/to/images</xsl:variable> > /path/to/images is the path from a known root Correct? That is correct. Otherwise... > Here are my snippets > <xsl:variable name="varImagesDirectory"> > com/path/to/images > </xsl:variable> > > <fo:external-graphic src="url('{$varImagesDirectory}/pic.jpg')"> > </fo:external-graphic> ...(if I understand it correctly) would assume {XML-dir}/com/path/to/images/pic.jpg Web Maestro Clay --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]