external graphics and Classpath

"Olaf Wentzien/PPI" <[email protected]>
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
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:     [email protected]
WWW:   www.ppi.de
Tel.:        040 / 22 74 33 - 343
FAX:       040 / 22 74 33 - 320
Mobil:      0160 / 36 77 434
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.