I should've thought of this sooner...
<!-- At the top of my XSL-FO file or in an xsl:include --> <!-- varImagesDirectory | used to set PATH to images/ directory--> <xsl:variable name="varImagesDirectory">/path/to/images</xsl:variable>
<!-- .. -->
<!-- my fo:external-graphic call -->
<fo:external-graphic src="url('{$varImagesDirectory}/logo.jpg')" width="1.87cm" height=".99cm" content-width="1.87cm" content-height=".99cm" border="0"/>
is how I use it in our system...
Hope this helps!
Web Maestro Clay
On Jul 23, 2004, at 8:33 AM, Danny wrote:
Matthew,
Thanks for the suggestion.
Not sure I see how that solves my problem.
Does XSLT allow me to set the basedir against the classpath in the global
variable, therefore solving the problem of having to specify the absolute
path?
Thanks
Danny Gallagher Senior Software Engineer The Gainer Group 6075 The Corners Parkway Suite 116 Norcross Ga, 30092
-----Original Message----- From: Zaleski, Matthew (M.E.) [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 10:01 AM To: [EMAIL PROTECTED] Subject: RE: external-graphic src problem
This possibly becomes an XSLT problem. Use a global variable passed into the XSLT transform to provide the basedir for the images.
-----Original Message----- From: Danny [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 9:56 AM To: [EMAIL PROTECTED] Subject: RE: external-graphic src problem
Clay,
I did read up on some of the baseDir mails on various lists.
Using baseDir I could reference the relative path to the image in the xsl, but I would have to specify an absolute path in the baseDir, so really that is the same as just hardcoding the path in the xsl.
My problem is that I do not want to require the application be installed
in a specific directory structure, although, if that is the only way
perhaps that is what I need to do.
If I find a solution I will post it back.
Thanks for the help.
Danny Gallagher Senior Software Engineer The Gainer Group 6075 The Corners Parkway Suite 116 Norcross Ga, 30092
--------------------------------------------------------------------- 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]