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

Post here questions and problems related to editing and publishing DITA content.
akuh
Posts: 10
Joined: Wed May 15, 2013 12:23 am

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

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

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

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

<oXygen/> XML Editor Support
akuh
Posts: 10
Joined: Wed May 15, 2013 12:23 am

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

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

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

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

<oXygen/> XML Editor Support
akuh
Posts: 10
Joined: Wed May 15, 2013 12:23 am

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

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

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

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

<oXygen/> XML Editor Support
cjboorman
Posts: 37
Joined: Wed Jun 19, 2013 1:49 am

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

Post 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)).
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post by radu_pisoi »

Hi,

Thank you for your feedback.

I've added your vote for this improvement.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply