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

lopresti
Posts: 12
Joined: Mon Mar 24, 2014 11:22 pm

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

Post by lopresti » Fri Jun 22, 2018 9:20 pm

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: 6592
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Mon Jun 25, 2018 9:06 am

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: 12
Joined: Mon Mar 24, 2014 11:22 pm

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

Post by lopresti » Mon Jun 25, 2018 8:52 pm

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

Post Reply