Actually, I missed the part in your message where you mentioned the
keep.relative.image.uris parameter. If keep.relative.image.uris is set to
1, then each relative path is *not* altered to account for xml:base
attributes. For FO output, that parameter should be set to zero, except
under unusual circumstances. But with it set to 1, your fo error should
indicate that first-steps is not in the graphics path at all. I'm a little
confused by that error.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: "Bob Stayton" <>
To: <>; "Tino Sch闤lhorn"
<>
Sent: Tuesday, October 16, 2007 11:41 AM
Subject: Re: [docbook-apps] Problems with XInclude and images
In your ant build file, what process is being used to resolve the
XIncludes? Is there a separate step that creates a temporary XML file with
XIncludes resolved before the stylesheet is applied? If so, then you can
examine the xml:base attributes in it to see if those are correct. If they
are not correct, then the XInclude processor has a problem. If they are
correct, then the stylesheet has a problem.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: "Tino Sch闤lhorn" <>
To: <>
Sent: Monday, October 15, 2007 9:43 AM
Subject: [docbook-apps] Problems with XInclude and images
> Hi,
>
> we are setting up docbook for documenting our project. So far everythings
> goes well. There is just on issue with which I am struggling: When using
> images in document parts which are included by "XInclude" the
> XSLT-Stylesheet seems to apply the xml:base twice!
>
> The project is layouted like this:
>
> main.xml
> |--------first-steps
> | |-------pictures
> | |-------first-steps.xml
>
> (and so on)
>
> The picture should be stored in first-steps/pictures. When writing the
> document "first-steps.xml" we use the following docbook part to include
> an image:
>
> <graphic fileref="pictures/login.jpg"/>
>
> Which works nicely - as long we don't XInclude the first-steps.xml in the
> main.xml
>
> As I understand one should set the XSLT-Option "keep.relative.image.uris"
> to "1" so that the xml:base values are applied. When doing so, we get
> HTML output which is like:
>
> <img src=first-steps/first-steps/pictures/login.jpg>
>
> When transforming to PDF output an error occurs that the picture
> "first-steps/first-steps/pictures/login.jpg" cannot be found.
>
> Obviously the xml:base attribute has been applied twice.
>
> So, what am I missing here? Is there a general error?
>
> I am using docbook-xsl-1.73.2 and Ant 1.7 to generate the documents.
>
> Does someone has an idea what is missing?
>
> In hope for an hint
> Tino
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
For additional commands, e-mail: