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: Daniel Veillard <veillard at redhat dot com>
- To: "Sanders, M." <MSA at ballastham dot com>
- Cc: DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 17 Nov 2003 17:25:32 -0500
- Subject: Re: [docbook-apps] xinclude and images from other directories
- References: <2C638A837F8C18499710D0E61D2604D9EFD7F2@ZIRCONIUM.ballastham.com>
- Reply-to: veillard at redhat dot com
On Mon, Nov 17, 2003 at 07:37:14PM +0100, Sanders, M. wrote:
[...]
> 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!
>
> My file tree thus looks like:
> -main.xml
> -(resolved.xml)
> chapter1
> -chapter1.xml
> -figure.jpg
>
[...]
> <chapter xml:base="chapter1/chapter1.xml">
> etc.
>
> and I see at the place of the failed image a bit further in the chapter:
> <imagedata fileref="figure.jpg" ...
That's normal from an XInclude point of view.
> The path to to image is the same as it was in the chapter1.xml file.
That's normal the URI-Reference is the same, but the base changed
see RFC 2396 and successors.
[...]
> Anyone got a clue on what I am doing wrong?
Seems that FOP does not understand XML Base,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.