DITA to Webhelp: How to have continuous numbering of the tab
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 10
- Joined: Wed May 15, 2013 12:23 am
DITA to Webhelp: How to have continuous numbering of the tab
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
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
-
- 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.
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
Sorin
<oXygen/> XML Editor Support
-
- 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:
from the file:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.xhtml\xsl\xslhtml\dita2htmlImpl.xsl.
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>
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.xhtml\xsl\xslhtml\dita2htmlImpl.xsl.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
-
- 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
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
Sorin
<oXygen/> XML Editor Support
-
- Posts: 37
- Joined: Wed Jun 19, 2013 1:49 am
Re: DITA to Webhelp: How to have continuous numbering of the tab
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)).
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)).
-
- Posts: 404
- 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.
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service