Hi all,
I'm using Xalan to create my .fo files from XML and
XSL, then rendering pdf's using fop (v.0.19). I'm using JDK 1.3.
This is all within a servlet. I'm using Apache and Tomcat together as web
server and servlet engine. My problem is when I try to include
'external-graphics'. I want to be able to get the graphics using a
relative path over the web server. Problem is, when I put the path "http://localhost/VincentSite/img/checkbox.gif",
it works, but "/VincentSite/img/checkbox.gif" doesn't. The strange thing
is, I use a dictionary aswell, and I can find that using either
"/VincentSite/xml/Dictionary.xml", or "http://localhost/VincentSite/xml/Dictionary.xml",
so I know I'm using the correct path. Also, this happens within a larger
application which uses relative paths everywhere in the XSL to get images, and
has no problems.
I've looked elsewhere for a solution to this, and
can't seem to find one, so any help would be much appreciated.
TIA
Micheál
<xsl:choose>
<xsl:when test="PersonalData/Checked='Y'"> <fo:table-cell> <fo:block font-size="9pt" line-height="13pt" text-align="start"> <fo:external-graphic src="/VincentSite/img/chkbxgif-y.gif"/> </fo:block> </fo:table-cell> </xsl:when> <xsl:otherwise> <fo:table-cell> <fo:block font-size="9pt" line-height="13pt" text-align="start"> <fo:external-graphic src="/VincentSite/img/chkbxgif.gif"/> </fo:block> </fo:table-cell> </xsl:otherwise> </xsl:choose> |
- external-graphic Micheál Healy
- external-graphic Adnan Zelkanovic
- Re: External-graphic claes . bergsten
- Re: External-graphic Jeremias Maerki
- Re: External-graphic claes . bergsten
- Re: External-graphic Jeremias Maerki
- external-graphic Kelvin Zheng
- Re: external-graphic J.Pietschmann