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: Imagedata fileref - wrong path


Hi,

The problem is that the wrong file path is being generated for image files.
I've just upgraded to Suse 10 (from Suze 9.2), which has resulted in the docs 
build being broken.  I've managed to fix most things, but this one has me 
stumped.

The directory structure:
/trunk/
    tool-1/docs/tool-1.xml
    tool-2/docs/tool-2.xml
    ... ...
    /docs/xml/
      index.xml
      manual.xml
      tech-docs.xml
      ...
    /docs/lib/
      vg-common.xsl
      vg-fo.xsl
      ... ...
    /docs/images/
      *.png

After running make, the dir looks as above, but with the addition of:
    /docs/html/
      <contains generated .html files>
    /docs/html/images/
      <contains images relevant to html files>
    /docs/print/
      <contains generated .pdf and .ps files>
    /docs/print/images/
      <contains images relevant to pdf+ps files>

The images need to be copied into sub-dirs so that the bookset can stand alone 
on different distros.

tool-1.xml contains:

<para>Here's an example graph:</para>
<mediaobject id="spacetime-graph">
  <imageobject>
    <imagedata fileref="images/massif-graph-sm.png" format="PNG"/>
  </imageobject>
  <textobject>
    <phrase>Spacetime Graph</phrase>
  </textobject>
</mediaobject>

which results in tool-1.html containing:

<p>Here's an example graph:</p>
<div class="mediaobject">
<a name="spacetime-graph"></a><img 
src="../docs/massif/docs/images/massif-graph-sm.png" alt="Spacetime Graph">
</div>

make print-docs dies because manual.fo contains:

<fo:block space-before.optimum="1em" space-before.minimum="0.8em"
    space-before.maximum="1.2em">Here's an example graph:</fo:block>
<fo:block id="spacetime-graph">
<fo:external-graphic src="../docs/massif/docs/images/massif-graph-sm.png"  
    width="auto" height="auto" content-width="auto" content-height="auto" 
    content-type="content-type:image/png"/>
</fo:block>


Please can someone help with this. I'm utterly at a loss.

Donna


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