Word to DITA Conversion Batch Converter Add-On Table Titles
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 7
- Joined: Tue May 24, 2022 11:36 pm
Word to DITA Conversion Batch Converter Add-On Table Titles
Hello!
I need to convert Word files to DITA XML for work. Some of these files contain tables with table titles above them like so:
The title is currently sitting in the paragraph above. However, originally, the titles were in the first row of the table, and a Word macro is used to remove them. So, alternatively, could the title be mapped to a <title> element somehow from the first row of the table? If not, since this macro currently removes them automatically, the titles could be pasted in Word with a specific Word style, and then I believe I am able to map that style to the <title> element - this has raised a problem for me as I can not determine how to wrap the <title> element inside the <table> element for the table below it.
I need to convert Word files to DITA XML for work. Some of these files contain tables with table titles above them like so:
image.png
Currently, this gives an output similar to the following:
image.png
But I would like it to look something like this:
image.png
Would it be possible to, using the Batch Converter Add-On, map these table titles to a <title> element wrapped in the <table> element for the table itself?The title is currently sitting in the paragraph above. However, originally, the titles were in the first row of the table, and a Word macro is used to remove them. So, alternatively, could the title be mapped to a <title> element somehow from the first row of the table? If not, since this macro currently removes them automatically, the titles could be pasted in Word with a specific Word style, and then I believe I am able to map that style to the <title> element - this has raised a problem for me as I can not determine how to wrap the <title> element inside the <table> element for the table below it.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Word to DITA Conversion Batch Converter Add-On Table Titles
Hi,
If you send us (support@oxygenxml.com) a small Word document containing such a construct we could maybe try to look into what information we receive from inside the Word document at conversion time and how we could map that title inside the generated DITA table in a future batch converter version.
But in such cases when you obtain DITA content which needs to be further modified you could use our XML refactoring actions based on XSLT or XQuery:
https://www.oxygenxml.com/doc/versions/ ... tools.html
There is a GitHub project with various XML refactoring actions:
https://github.com/oxygenxml/dita-refactoring-examples
and I just added an XML refactoring action for what you want here:
https://github.com/oxygenxml/dita-refac ... de%20table
Regards,
Radu
If you send us (support@oxygenxml.com) a small Word document containing such a construct we could maybe try to look into what information we receive from inside the Word document at conversion time and how we could map that title inside the generated DITA table in a future batch converter version.
But in such cases when you obtain DITA content which needs to be further modified you could use our XML refactoring actions based on XSLT or XQuery:
https://www.oxygenxml.com/doc/versions/ ... tools.html
There is a GitHub project with various XML refactoring actions:
https://github.com/oxygenxml/dita-refactoring-examples
and I just added an XML refactoring action for what you want here:
https://github.com/oxygenxml/dita-refac ... de%20table
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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)
- ↳ 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