Page 1 of 1

Images missing from DITAVal output (action="flag")

Posted: Fri Jun 22, 2018 9:20 pm
by lopresti
I'm trying to add images to flagged content. These images appear in HTML output, but not in PDF.

Here is the markup from my DITAVal file:

Code: Select all


<val>
<prop action="flag" att="platform" val="win" backcolor="yellow">
<startflag imageref="microsoft.jpg">
<alt-text>Windows</alt-text>
</startflag>
</prop>
</val>
Here's the error I get in processing:

Code: Select all


[fop] [ERROR] Image not found. URI: file:/private/var/folders/1g/9n6smx8d1g7gngs6rrr0wpf40000gq/T/OxygenXMLTemp/ditaTemporaryOutputDir-1529690744365/t1/t2/t3/t4/t5/../product_name/microsoft.jpg. (See position 10:-1)
Is this maybe a toolkit bug? I'm using DITA OT 2.3.3.

Thanks.

Re: Images missing from DITAVal output (action="flag")

Posted: Mon Jun 25, 2018 9:06 am
by Radu
Hi Kate,

I can also reproduce the problem using the DITA OT 2.5.4 bundled with Oxygen 20.1. The problem seems somehow related to using the "fix.external.references" parameter. I can no longer reproduce the problem using DITA OT 3.1, there is an Oxygen add-on for it:

https://github.com/oxygenxml/dita-ot-3x-plugin.

Maybe as a possible workaround, just for the PDF publishing in the DITAVAL you could have an absolute reference to the image, like:

Code: Select all

<val>
<prop action="flag" att="platform" val="win" backcolor="yellow">
<startflag imageref="file:/C:/path/to/my/project/Salvia.jpg">
<alt-text>Windows</alt-text>
</startflag>
</prop>
</val>
Regards,
Radu

Re: Images missing from DITAVal output (action="flag")

Posted: Mon Jun 25, 2018 8:52 pm
by lopresti
Thanks, Radu. The workaround was just what I needed. The image appears now.