Docbook Maven Plugin, Images dissappear

Questions about XML that are not covered by the other forums should go here.
AlexVV
Posts: 5
Joined: Wed Oct 06, 2010 10:41 pm

Docbook Maven Plugin, Images dissappear

Post by AlexVV » Tue Nov 30, 2010 1:34 am

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)