Hi-
I'm attempting to use a gif image using the fo:external-graphic tag. Both
the gif file and the xsl file are located in a war file. The gif is located
in a directory /images (from the war file's root) and the xsl file is
located in a directory named web-inf. So far I've tried using the
following:
<!-- GS logo box -->
<fo:table-cell>
<fo:block>
<fo:external-graphic src="/images/logo_gs.gif" />
</fo:block>
</fo:table-cell>
<!-- GS logo box -->
<fo:table-cell>
<fo:block>
<fo:external-graphic src="file:/images/logo_gs.gif" />
</fo:block>
</fo:table-cell>
<!-- GS logo box -->
<fo:table-cell>
<fo:block>
<fo:external-graphic src="images/logo_gs.gif" />
</fo:block>
</fo:table-cell>
<!-- GS logo box -->
<fo:table-cell>
<fo:block>
<fo:external-graphic src="file://images/logo_gs.gif" />
</fo:block>
</fo:table-cell>
Each of these have given me the following error:
[1Error while creating area : Invalid Image URL - error on relative URL :
no protocol: null/images/logo_gs.gif
What is the best way to refer to an image from within a war file? Is the
war file even the issue?
Thanks.
Jeff Orford
*********************************************
Jeffrey Orford
Goldman Sachs Information Technology
(212)357-1306
[EMAIL PROTECTED]
"Plans are nothing; Planning is everything" -Eisenhower
*********************************************