OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Image location

Setting the "image.src.path" parameter would eliminate a need to prefix the path on all images. However, that doesn't seem to be your problem. Everything you stated/done should be working. The FO code looks right and it does seem to fit the file structure.
I am assuming that you are under a Linux/Unix OS. That said, I would look at the upper/lower case filenames located in your images directory and make sure they correspond with how you called them in the XML code.. My users are Windows and Linux and we constantly run in to case issues that show up under Linux but not Windows.
As you can tell, we are now "reaching" a bit for the solution for you. Maybe the exact error from FOP would help?
Dean Nelson
In a message dated 9/30/2011 3:31:58 P.M. Pacific Daylight Time, markus.hoenicka@mhoenicka.de writes:

my directory setup is usually as follows (somewhat simplified):


mydoc.xml then uses relative paths to specify the image:

<imagedata align="center" scale="50" format="PNG"

Makefile is set up to invoke xsltproc and fop as needed. In order to 
transform this document, I cd to ~/mydoc and run make pdf. That's 
about it.


Quoting Lars Vogel <lars.vogel@googlemail.com>:

> Hi Chris,
> thanks for the answer unfortunately this also does not work.
> In which directory should the image be?
> Best regards, Lars
> 2011/9/30 Køi¹tof ®elechovski <giecrilj@stegny.2a.pl>
>> Dnia pi±tek, 30 wrze¶nia 2011 o 12:29:29 Lars Vogel napisa³(a):
>> > Hello,
>> >
>> > I'm trying to create PDF from my Docbook output via the corresponding
>> > stylesheets but FOP cannot find the image. I read Bobs description and I
>> > believe the path of the image is correctly setup.
>> >
>> > http://www.sagehill.net/docbookxsl/GraphicsLocations.html
>> > http://www.sagehill.net/docbookxsl/ModularDoc.html#XIncludeGraphics
>> >
>> > The generated FO source look like the following:
>> >
>> > <fo:block id="d0e101"><fo:external-graphic
>> > src="" width="auto" height="auto"
>> > content-width="auto" content-height="auto"/></fo:block>
>> That looks like relative path.
>> >
>> > and files are in the following structure:
>> >
>> > article.fo
>> > /content/images/DojoFolder10.gif
>> >
>> Did you try setting src=""?
>> Chris
>> >
> --
> Lars
> http://www.vogella.de - Eclipse, Android and Java Tutorials
> http://www.twitter.com/vogella - Lars on Twitter

Markus Hoenicka
AQ score 38

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]