W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2002

external graphics and Classpath

From: Olaf Wentzien/PPI <olaf.wentzien@ppi.de>
Date: Wed, 6 Nov 2002 10:57:33 +0100
To: www-xsl-fo@w3.org
Cc:
Message-ID: <OFCC9C0080.5B2FCF6D-ONC1256C69.0035608E@ppinet.de>

Hi,

I have integrated FOP in an existing JAVA-Application and it works well.

In my XML-Sources I reference some external graphics ( logos, etc.),
which I would like to devliever within the jar-File(s) of the application.

So in my XML-Source I may have something like:

            <logo src="url('/images/logo.gif')" />
 
and in my stylesheet this leads to:

            <xsl:template match="logo">
                <fo:block text-align="center">
                               <xsl:apply-templates />
                               <fo:external-graphic height="1.2cm" 
src="{@src}" />
                        </fo:block>
                    </xsl:template>

So I would like to have the image in an relative path "/images/logo.gif"
in my jar-File. 

If that is not possible, at least in an relative path in the file system.

But I alway get the message: "... not found, ... basedir is not set" ..... 
How can I do that

Can anybody help ??

TIA

--------------------------------

Olaf Wentzien

EMail:     olaf.wentzien@ppi.de
WWW:   www.ppi.de
Tel.:        040 / 22 74 33 - 343
FAX:       040 / 22 74 33 - 320
Mobil:      0160 / 36 77 434
Received on Wednesday, 6 November 2002 04:58:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT