xsl-list
[Top] [All Lists]

Re: [xsl] image from a jar file

2008-08-21 16:56:24


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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

  
Yes, it works that way. Thank you, Mauritz.

Rolf

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>