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

Re: Re: Image not available

From: Paulo Carvalho <pjcarvalho@gmail.com>
Date: Wed, 17 Feb 2010 12:38:59 +0100
Message-ID: <8f151cff1002170338v5b97fe9ek3b694b6677c82d59@mail.gmail.com>
To: www-xsl-fo@w3.org
Cc: dave.pawson@gmail.com
On Wed, Feb 17, 2010 at 10:38 AM, Dave Pawson <dave.pawson@gmail.com> wrote:

> 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.
>

=> The XSL stylesheet comes from a Database. It is not on the file system.
My image file is on a JAR file which is on the WAR file on my web service.
File name and path of the image are correct on the JAR file.



>
>
> > 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.
>

=> I tried with

jar:file:///D:/Programs/apache-tomcat-6.0.24/webapps/MyWS/WEB-INF/lib/App.jar!/
instead of
jar:file:/D:/Programs/apache-tomcat-6.0.24/webapps/MyWS/WEB-INF/lib/App.jar!/

And it still does not work....


I'm lost...


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



-- 
Paulo Carvalho
1 rue du Chateau
57710 Aumetz
France
http://forum-informatico.forumeiros.com/index.htm
http://ummundoecologico.blogspot.com
Received on Wednesday, 17 February 2010 11:40:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 17 February 2010 11:40:07 GMT