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

akuh
Posts: 10

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

Fri Mar 06, 2015 5:23 pm

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: 4144

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

Mon Mar 09, 2015 1:11 pm

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

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

Wed Mar 11, 2015 4:04 pm

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: 4144

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

Thu Mar 12, 2015 5:54 pm

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

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

Thu Mar 12, 2015 7:46 pm

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: 4144

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

Fri Mar 13, 2015 10:12 am

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

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

Tue Sep 20, 2016 11:31 pm

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: 335
Location: Craiova

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

Wed Sep 21, 2016 9:44 am

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 0 guests