Page 1 of 1

WebHelp: Unwanted <data-about> output

Posted: Tue Jun 02, 2015 1:01 pm
by Frank Ralf
Hi,

I have a figure with an enclosed <data-about> section in my DITA files, like so:

Code: Select all


<fig id="fig123" class="- topic/fig ">
<title class="- topic/title ">Merging of text</title>
<image href="../Figures/MergingText.png"/>
<data-about type="image" scope="local" class="- topic/data-about ">
<data name="xoffset" value="1.000pt"/>
<data name="yoffset" value="1.000pt"/>
</data-about>
</fig>
This ends in the default WebHelp output as:

Code: Select all


<span style="background-color: yellow;">
<span style="font-weight: bold">[/topic/body/fig/data-about {"- topic/data-about "}) </span>
I've already read "Passing product attribute value to webhelp topics" and suppose I have to modify the [Oxygen-install-dir]\frameworks\dita\DITA-OT\xsl\xslhtml\dita2htmlImpl.xsl XSL file to get rid of this output? Or is this some default behavior I can suppress otherwise?

Kind regards,
Frank

Re: WebHelp: Unwanted <data-about> output

Posted: Tue Jun 02, 2015 6:16 pm
by sorin_ristache
Hi Frank,

The extra text comes from a bug in the DITA-OT toolkit which you can also experience in the DITA Map XHTML transformation. I will come up shortly with a workaround, or better with a fix for this DITA-OT issue, and I will update this topic as soon as I have the solution.

Re: WebHelp: Unwanted <data-about> output

Posted: Wed Jun 03, 2015 3:45 pm
by Frank Ralf
Hi Sorin,

Thanks for your quick reply and this information.

Re: WebHelp: Unwanted <data-about> output

Posted: Wed Jun 03, 2015 4:45 pm
by sorin_ristache
Hi Frank,

I have a quick fix for you: please add the following XSLT template

Code: Select all

  <xsl:template match="*[contains(@class,' topic/data-about ')]"/>
at the end of the following XSLT stylesheet (before the </xsl:stylesheet> closing tag, of course):

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\fixup.xsl

Re: WebHelp: Unwanted <data-about> output

Posted: Mon Jun 08, 2015 2:35 pm
by Frank Ralf
Hi Sorin,

Thanks for this quick fix. And thanks for getting this fixed in the DITA Open Toolkit :-)

img/data-about element should not be rendered in XHTML output page

Frank