This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] xinclude and images from other directories
- From: Janning Vygen <vygen at gmx dot de>
- To: "Sanders, M." <MSA at ballastham dot com>, "DOCBOOK-APPS" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 17 Nov 2003 19:47:38 +0100
- Subject: Re: [docbook-apps] xinclude and images from other directories
- Organization: Planwerk 6 /websolutions
- References: <2C638A837F8C18499710D0E61D2604D9EFD7F2@ZIRCONIUM.ballastham.com>
Am Montag, 17. November 2003 19:37 schrieb Sanders, M.:
> Hello,
>
> I am currently working with a modular and profiling setup but FOP
> complains about the images in xincluded sections and it is puzzling
> me.
>
> My main.xml document looks like:
> ...
> <xi:include href="chapter1/chapter1.xml"
> xmlns:xi=http://www.w3.org/2001/XInclude />
> ...
>
> As long as chapter1 only contains text and no images everything is
> fine. When I include an image - residing in chapter1/figure.jpg - I
> get a lot of errors from FOP about not being able to find the image
> and no image. FOP also tells me it is looking in the directory
> where main.xml is and not in chapter1 directory for the image!
The docbook-xsl FO Stylesheets do not consider xml:base when it comes
to translation of fileref attribute.
You need a customization layer which handles filerefs in respect of
preceding elements with xml:base attributes
It was on this list a few times and i am willing to write one
soon. (i already got one but its for html conversion and is
specialized for my needs). But maybe someone else has already written
it and can send it to the list.
Another approach: put all your files in one directory and use only
one image directory, so your fileref will be always correct.
kind regards,
janning
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.