Re: [xsl] image from a jar file

Subject: Re: [xsl] image from a jar file
From: Rolf Schumacher <mailinglist@xxxxxxxxx>
Date: Fri, 22 Aug 2008 01:55:55 +0200
Mauritz Jeanson wrote:
>> -----Original Message-----
>> From: Rolf Schumacher
>>
>> I'm using Xalan and fop embedded to a Java application.
>> The application is distributed as a jar file.
>> It uses some images, e.g. logos, that are contained in the 
>> jar file for
>> convenience.
>> What URL to put in the "src" attribute of fo:external-graphic in order
>> to include it?
>>     
>
>
> Something like this:
>
> <fo:external-graphic src="jar:file:///foo/bar.jar!/baz/logo.jpg"/>
>
> See http://java.sun.com/javase/6/docs/api/java/net/JarURLConnection.html
>
> /MJ
>
>   
Yes, it works that way. Thank you, Mauritz.

Rolf

Current Thread