Page 1 of 1

DITA to Webhelp: How to have continuous numbering of the tab

Posted: Fri Mar 06, 2015 5:23 pm
by akuh
Hello,

I am using 'XML Editor 16.1, build 2015012213'.

When I convert my DITA maps to Webhelp, the number in the title of the tables is always equal to 1.

How can I have a continuous numbering of the tables from 1 until the number of tables I have in my DITA maps?

Thank you in advance,
Regards

Re: DITA to Webhelp: How to have continuous numbering of the

Posted: Mon Mar 09, 2015 1:11 pm
by sorin_ristache
Hello,

The WebHelp transformation processes the content of each DITA topic file independent of the other topics, and a count of the tables in all the topics is not computed in a progressive way while the transformation goes through successive topics. Only the tables in the current topic T are available when the table numbers are assigned to each table in the topic T (tables 1, 2, 3, etc. in topic T, tables 1, 2, 3, etc. in topic T+1, etc.). This is why the table numbers is not continuous across successive topics.

For keeping a count of all topics in a continuous way the WebHelp transformation would need to be changed in a way that is not trivial. We will consider such a feature for a future version of Oxygen.

Some good XSLT and ANT skills and some knowledge about DITA-OT temporary files (created by a DITA-OT transformation and necessary for the final WebHelp pages) are required for this task. I can give you some starting points if you want to customize yourself the XSLT part of the WebHelp transformation.

Re: DITA to Webhelp: How to have continuous numbering of the

Posted: Wed Mar 11, 2015 4:04 pm
by akuh
Thank you for your answer.

Is there a way to get rid of the numbering in the titles of the tables, so that the tables are no longer numbered?

Regards,

Re: DITA to Webhelp: How to have continuous numbering of the

Posted: Thu Mar 12, 2015 5:54 pm
by sorin_ristache
You can get rid of the table numbers in the table titles by deleting the following code:

Code: Select all

  <xsl:otherwise>
<xsl:call-template name="getString">
<xsl:with-param name="stringName" select="'Table'"/>
</xsl:call-template><xsl:text> </xsl:text><xsl:value-of select="$tbl-count-actual"/><xsl:text>. </xsl:text>
</xsl:otherwise>
from the file:

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

Re: DITA to Webhelp: How to have continuous numbering of the

Posted: Thu Mar 12, 2015 7:46 pm
by akuh
Thank you.

Would it be possible that you give the starting points for customizing oneself the XSLT part of the WebHelp transformation?

Regards,

Re: DITA to Webhelp: How to have continuous numbering of the

Posted: Fri Mar 13, 2015 10:12 am
by sorin_ristache
Sure, the starting point are the following two XSLT files:

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

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

Re: DITA to Webhelp: How to have continuous numbering of the tab

Posted: Tue Sep 20, 2016 11:31 pm
by cjboorman
Would you please consider getting this feature into your backlog? I'm quite surprised that oXygen XML Editor doesn't already include this feature (Word includes it). I'm also surprised that you include this support - but on a per topic basis only (which, in my opinion, is not useful).

While we're on this topic, can I ask that you also include support for numbering all of the images in a document (so we can have a Table of Figures (as well as a Table of Tables)).

Re: DITA to Webhelp: How to have continuous numbering of the tab

Posted: Wed Sep 21, 2016 9:44 am
by radu_pisoi
Hi,

Thank you for your feedback.

I've added your vote for this improvement.