FYI - I still can't get this to work for a relative file path. Since I have
NT dev boxes and Unix QA and Prod, I have to feed the explicit PDF filepath
to the stylesheet as a parameter. I get the filepath form a
environment-level properties file. Still looking for that elusive XSLT
relative filepath if anyone has found it.
Here's our solution if it helps anyone:
<<< XSLT >>>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:param name="pdfImagePath" />
(...)
<fo:external-graphic
src="{concat($pdfImagePath,'ClinTrialLogoGreenBig.gif')}" />
(...)
<<< Servlet Piece >>>
transformer.setParameter("pdfImagePath",
getServletConfig().getServletContext().getAttribute("pdfImagePath"));
-Matt
> -----Original Message-----
> From: Rob Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 1:55 AM
> To: [EMAIL PROTECTED]
> Cc: 'Troy Bottger'
> Subject: RE: newbie needs help with relative address for image.
>
>
>
> > From: Troy Bottger
> >...
> > <fo:external-graphic height="24mm" width="66mm"
> src="{../companylogo/url}"/>
> > It is just when I specify the relative address when I get:
> > Error while creating area : Invalid Image URL - error on
> relative URL : no
> > protocol: null/abc/images/merchant_logo.gif
>
> Try src="file:{../companylogo/url}"
> --
> Rob Smith
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]