Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dita Plugin Generates Wrong image path

Guest
May 19, 2009 May 19, 2009

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?

TOPICS
Structured
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , May 19, 2009 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

Translate
Guest
May 19, 2009 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 19, 2009 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 21, 2009 May 21, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines