Skip to main content
May 19, 2009
Answered

Dita Plugin Generates Wrong image path

  • May 19, 2009
  • 1 reply
  • 1094 views

When I use DITA > Generate Output > Html to generate HTML from a DITA file containing an imported image reference the resulting output directory contains an image directory with image files but the html actually points to the source's image directory two directories up. For example the url should be ./images/26.gif and not ../../images/26.gif.

Where is this controled?

This topic has been closed for replies.
Correct answer ScottPrentice

Hi Rick...

The Generate Output command, basically just passes the map file off to the Open Toolkit for processing. I don't think that any processing is done by FM (or the DITA plugin) at all. What version of the OT are you using? I assume that the image is referenced correctly when viewed in FM? In general, your map should be at the top level of the fiels in the scope. Does your map have any references to files that go up a level ("../")?

...scott

1 reply

May 19, 2009

Moving the location of the ditamap two directories up solves the problem. It doesn't answer the question as to where this behavior is controlled though.

ScottPrentice
ScottPrenticeCorrect answer
Inspiring
May 19, 2009

Hi Rick...

The Generate Output command, basically just passes the map file off to the Open Toolkit for processing. I don't think that any processing is done by FM (or the DITA plugin) at all. What version of the OT are you using? I assume that the image is referenced correctly when viewed in FM? In general, your map should be at the top level of the fiels in the scope. Does your map have any references to files that go up a level ("../")?

...scott

May 21, 2009

I'm using DITA-OT1.4.3 and yes, I think the correct answer is the map belongs at the top level. I was a little quick to post the question. I discovered the answer shortly after. Thanks for the reply.