Rogue period appearing after desc in oxygen-webhelp output

Post here questions and problems related to editing and publishing DITA content.
dagoss
Posts: 24
Joined: Fri Apr 05, 2013 11:01 pm

Rogue period appearing after desc in oxygen-webhelp output

Post 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?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

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

Post 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
dagoss
Posts: 24
Joined: Fri Apr 05, 2013 11:01 pm

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

Post 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).
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

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

Post 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
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

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

Post 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
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply