Page 1 of 1

Rogue period appearing after desc in oxygen-webhelp output

Posted: Mon Jun 16, 2014 9:23 pm
by dagoss
I'm getting a rogue period character right before the desc element's content in webhelp output. Here's my DITA source:

Code: Select all


<fig id="fig_jpn_mx1_pn">
<title>Frontier Science and LDMS</title>
<desc>This chart shows part of Frontier Science's organization structure</desc>
<image placement="break" id="image_kqt_4x1_pn" href="../../images/fs_organization.svg">
<alt>Graphic: Shows the various operating components of Frontier Science.</alt>
</image>
</fig>
And the HTML output in webhelp:

Code: Select all


<div class="fig fignone" id="concept_hlv_x1m_4n__fig_jpn_mx1_pn">
<br>
<img class="image" id="concept_hlv_x1m_4n__image_kqt_4x1_pn" src="../../images/fs_organization.svg" alt="Graphic: Shows the various operating components of Frontier Science.">
<br>
<p class="figcap">Frontier Science and LDMS</p>.
<span class="desc figdesc">This chart shows part of Frontier Science's organization structure</span>
</div>
The rogue period is appearing right after p.figcap. I'm just using the default oxygen-webhelp settings. Does anyone know the cause of this?

Re: Rogue period appearing after desc in oxygen-webhelp outp

Posted: Tue Jun 17, 2014 2:16 pm
by sorin_ristache
It is a separator between the figure title and figure description. If you want to omit it just remove the following line from the template with name="place-fig-lbl":

Code: Select all

<xsl:text>. </xsl:text>
which is line 3765 in file:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.xhtml\xsl\xslhtml\dita2htmlImpl.xsl


Regards,
Sorin

Re: Rogue period appearing after desc in oxygen-webhelp outp

Posted: Tue Jun 17, 2014 6:27 pm
by dagoss
Thank you Sorin for pointing me in the right direction. I'm using Oxygen 15.2 with the included DITA-OT 1.7, and the file that I needed to edit was different than the one you specified (which I assume is applicable to a later version). The file I edited is listed below, in case anyone else needs this information:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\xsl\xslhtml\dita2htmlImpl.xsl
Line 3792

In my mind, the placement of the </p> is incorrect. It should be after .figdsc, not before, so that the figure title and desc appear in the same <p> block (the separator suggests to me that was the intent).

Re: Rogue period appearing after desc in oxygen-webhelp outp

Posted: Wed Jun 18, 2014 10:22 am
by sorin_ristache
The location that I specified is correct for DITA-OT 1.8.4 in Oxygen 16.0.

I agree with the position of the figure description. It should be in the same <p> element as the figure title. I reported the problem to the DITA-OT project. I already corrected the problem in the DITA-OT which will be included in the next maintenance build of Oxygen 16.0 and in the next versions of Oxygen (16.1, 16.2, etc).


Regards,
Sorin

Re: Rogue period appearing after desc in oxygen-webhelp outp

Posted: Fri Jul 11, 2014 6:20 pm
by ionela
Hello,

I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 16.0, 2014070913 (released on July 10th):
DITA-OT/XHTML output: Include figure title (figtitle) and figure description (figdesc) in the same paragraph (p) element.
You can download it from our web site:
http://www.oxygenxml.com/download.html

The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2014070913

You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml

Let us know if you encounter further problems with this new build.

Regards,
Ionela