W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2010

Re: Re: Image not available

From: Dave Pawson <dave.pawson@gmail.com>
Date: Wed, 17 Feb 2010 09:38:30 +0000
Message-ID: <711a73df1002170138r5ac009d9nfe1db88db51683c3@mail.gmail.com>
To: Paulo Carvalho <pjcarvalho@gmail.com>
Cc: www-xsl-fo@w3.org
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
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.


Dave Pawson
Docbook FAQ.
Received on Wednesday, 17 February 2010 09:39:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:33 UTC