Problem with ditaval flag images not showing up

Oxygen general issues.
jciroli
Posts: 5
Joined: Wed Mar 25, 2009 6:43 pm

Problem with ditaval flag images not showing up

Post by jciroli »

Hello,

I am trying to demo the ability to use a visual flag (ditaval file) to indicate platform-specific information in generated web help output.

I have the following (silly, for demo purposes only) ditaval:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<val>
<prop action="flag" att="platform" val="fish">
<startflag imageref="fish.gif">
<alt-text>This is a fish</alt-text>
</startflag>
</prop>
</val>
I have associated it with my transformation scenario. The map, topics, and .gif all live in the same folder, for purposes of the demo.

I have set platform="fish" on various elements in my topic, including the root element a <ul> element.

For example:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_i4d_3rx_rr" platform="fish">
<title>Introduction to JBidwatcher</title>
<shortdesc>JBidwatcher is a fabulous piece of software that will help you rule the
world.</shortdesc>
<conbody>
<section><title>What can I do with JBidwatcher?</title>
<ul platform="fish">
<li>Rule the world</li>
<li>Have pizza for dinner every night</li>
<li>Order cat statues</li>
</ul></section>
<section><title>Why is JBidwatcher so awesome?</title>
<p>Blah blah blah blah blah.</p>
<p>More blah blah blah.</p></section>
</conbody>
</concept>
When I run the transform scenario that uses the ditaval, however, I don't get the graphic. What I do get is a broken-graphic icon, plus the alt text. (Tried to upload a screen cap, but having trouble with the markdown.)

Can you please advise on what might be going on here? Our student team needs to get visual cues in place (preferably on the root element, like <task> soon.

I'm using <oXygen/> XML Editor 16.1, build 2015040615 with the default stylesheets, etc.

Many thanks for your help.
Jennifer Ciroli
jennifer.ciroli@gmail.com or jciroli@andrew.cmu.edu
Radu
Posts: 9437
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with ditaval flag images not showing up

Post by Radu »

Dear Jennifer,

What happens is that the DITA Open Toolkit publishing engine does not automatically copy the flag images to the output folder.
You have 3 alternatives:

1) Copy the flagging images manually to the output folder.
2) Refer the images in the DITA Map as resource-only files:

Code: Select all

  <topicref href="fish.gif" processing-role="resource-only" format="gif"/>
and they will be copied automatically.

3) Create a custom DITA OT ANT build file which runs the default processing and then as an extra step copies the images to the output folder:

http://www.oxygenxml.com/doc/ug-oxygen/ ... -file.html

I would recommend (2).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jciroli
Posts: 5
Joined: Wed Mar 25, 2009 6:43 pm

Re: Problem with ditaval flag images not showing up

Post by jciroli »

Thank you for the quick answer! I truly appreciate it.

Regards,
Jennifer
Post Reply