Pages: 1
Print
Author Topic: Is it possible to use flagging without beginning and ending art?  (Read 3075 times)
JoAnne
Member

Posts: 49



« on: August 24, 2010, 04:16:50 PM »

This is probably a DITA-OT question, but I hope someone can point me in the right direction. I'm using XMetaL 6.0, running on Windows 7.

I have a ditaval file that adds background color to flagged revprops. When I generate WebHelp, the flagged content does have the background color, but is enclosed by the delta.gif (>>)  and deltaend.gif   (<<) art.

Is there a way to remove the gif files and not use any art?

Thanks, as always.

Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: August 24, 2010, 05:03:51 PM »

See the italicized sentence in the quote below.

Quote from: DITA Language Reference 1.1
The startflag takes an optional image reference and an optional alt-text element for identifying the beginning of flagged content. If an image is specified, the specified image will be used to flag the beginning of the content, with the alt-text contents as alternative text. If alt-text is specified without an image, that text will be used to flag the content instead of an image. If no image and no alt-text are specified, then this element has no defined purpose. The startflag element is allowed inside either prop or revprop.

The DITA LangRef says says basically the same thing for endflag.

This is the way the DITA Language Reference says things should work, but in reality I'm not sure if it actually does with DITA OT 1.4.2.1 (which is what you are probably running given your version of XMetaL Author Enterprise). I'd need to set up some tests to check on this. If this works for regular HTML then it should also work for WebHelp as WebHelp uses the standard DITA OT XHTML transtype for the HTML that make up the topics.

« Last Edit: August 24, 2010, 05:05:24 PM by Derek Read » Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #2 on: August 24, 2010, 05:21:50 PM »

OK, so it works as described. Here's the ditaval file I'm using:

<?xml version="1.0" ?>
<val>
<prop att="rev" val="test" action="flag"><startflag><alt-text>START ONLY TEXT</alt-text></startflag><endflag><alt-text>END ONLY TEXT</alt-text></endflag></prop>
</val>


To test I have the following XML in a topic:

<p rev="test" class="- topic/p ">This is a paragraph.</p>
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #3 on: August 24, 2010, 05:39:55 PM »

I see that there are some issues though (apparently addressed in DITA OT 1.5 which we plan to include with our next release):

https://sourceforge.net/tracker/?func=detail&aid=2008294&group_id=132728&atid=725074
Logged
JoAnne
Member

Posts: 49



« Reply #4 on: August 25, 2010, 08:56:23 AM »

Thanks, Derek.  Exactly what I needed. It even works if alt text is empty, which is what I needed in this case. I'm using background shading, so I didn't want anything before or after the flagged text.
Logged
Pages: 1
Print
Jump to: