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

Post here questions and problems related to editing and publishing DITA content.
lopresti
Posts: 13
Joined: Mon Mar 24, 2014 11:22 pm

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

Post 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.
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lopresti
Posts: 13
Joined: Mon Mar 24, 2014 11:22 pm

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

Post by lopresti »

Thanks, Radu. The workaround was just what I needed. The image appears now.
Post Reply