Re: Re: Image not available

On 17 February 2010 08:59, Paulo Carvalho <pjcarvalho@gmail.com> wrote:
> Hello
>
> Maybe I have a clue.
> (Just to remind, my web service use FO to transform a XML into a PDF)
> In the XML to FO transformation step, I logged the FO generated. In the part
> where the image should appear the text is the following one:
> <fo:table-cell padding="0" text-align="left" display-align="center">
>   <fo:block>
>     <fo:external-graphic src="url(img/logo.gif)"/>
>   </fo:block>
> </fo:table-cell>

Standard xsl-fo. Yes. with the image in a file, in directory img,
relative to the stylesheet.


> But it should be something like this no?
> <fo:table-cell padding="0" text-align="left" display-align="center">
>   <fo:block>
>     <fo:external-graphic
> src="url(jar:file:/D:/Programs/apache-tomcat-6.0.24/webapps/MyWS/WEB-INF/lib/App.jar!/img/logo.gif)"/>
>   </fo:block>
> </fo:table-cell>
> "jar:file:/D:/Programs/apache-tomcat-6.0.24/webapps/MyWS/WEB-INF/lib/App.jar!/"
> is the string used as SystemID for the streamsource used in the FO
> transformation... (string subs2 in the following code)


AFAIK, the expression jar:file:/D:  is invalid as far as
http://tools.ietf.org/html/rfc3986
is concerned, i.e. there is no such schema as jar:

It may have been added by some XSLT engines, possibly some xsl-fo engines too,
but it is still invalid as far as XSLT is concerned, i.e. this expression
is not portable.


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Wednesday, 17 February 2010 09:39:04 UTC