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] xinclude and images from other directories


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/


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