Page 1 of 1

Docbook Maven Plugin, Images dissappear

Posted: Tue Nov 30, 2010 1:34 am
by AlexVV
I'm using a maven docbkx plugin to generate html and pdf modspecs. The issue I'm having is that images are not showing up during generartion.

Example:

Code: Select all

<section xmlns="http://docbook.org/ns/docbook" xml:id="Visit" version="5">
<title>Visit</title>
<section>
<title>Screenshot</title>
<mediaobject>
<imageobject>
<imagedata fileref="screenshots/visitDialog.png" scalefit="1" width="100%" contentdepth="100%"/>
</imageobject>
</mediaobject>
</section>
</section>
The way I have things setup, all the .xml files are used to create a single "Contents.xml" file that links to all the other documents. In this way you end up with one final book that contains all the modspecs. I beleive the issue lies in the fact that the images paths are local to the .xml they belong to, but the contents.xml file is 2 levels up in the folder structure and can't see the images locally. So I'm wondering how I can tell the plugin to use a relative(?) URL to find the images properly. (without moving the images or the renaming the path)