WebHelp: Unwanted <data-about> output

Frank Ralf
Posts: 377
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

WebHelp: Unwanted <data-about> output

Post by Frank Ralf » Tue Jun 02, 2015 1:01 pm

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
Frank Ralf
parson AG
www.parson-europe.com

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: WebHelp: Unwanted <data-about> output

Post by sorin_ristache » Tue Jun 02, 2015 6:16 pm

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.
Regards,
Sorin

<oXygen/> XML Editor Support

Frank Ralf
Posts: 377
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: WebHelp: Unwanted <data-about> output

Post by Frank Ralf » Wed Jun 03, 2015 3:45 pm

Hi Sorin,

Thanks for your quick reply and this information.
Frank Ralf
parson AG
www.parson-europe.com

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: WebHelp: Unwanted <data-about> output

Post by sorin_ristache » Wed Jun 03, 2015 4:45 pm

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
Regards,
Sorin

<oXygen/> XML Editor Support

Frank Ralf
Posts: 377
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: WebHelp: Unwanted <data-about> output

Post by Frank Ralf » Mon Jun 08, 2015 2:35 pm

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
Frank Ralf
parson AG
www.parson-europe.com

Post Reply