Word to DITA Conversion Batch Converter Add-On Style Mapping
Posted: Tue May 24, 2022 11:55 pm
Hi,
Question: I am converting Word documents to DITA XML for work using the Batch Converter Add-On 4.0.0. Am I able to map Word styles to specific XML elements?
Additional Questions: Would there be a way to map a style to an element with a specific attribute, e.g. map a custom Word style "cool" --> <note type = "cool"></note>? I also do have my own XML document with mappings used previously with a different conversion system. Is there any way to import this?
What I have done so far: I know styles can be mapped to HTML elements, and I found the file containing the style mapping in oxygen-batch-converter-core-24.1-SNAPSHOT.jar by opening it with the Archive Browser. Is there a way for me to add a mapping from Word --> HTML, then add a mapping (somewhere) that takes the element made in the intermediary Word --> HTML step (in a Word --> DITA conversion) to convert that HTML element to an XML element of my choosing? I found some XSL files that appear to convert HTML (or XHTML) to XML in the same JAR file, but I am not well versed in XSL.
Thank you very much.
Question: I am converting Word documents to DITA XML for work using the Batch Converter Add-On 4.0.0. Am I able to map Word styles to specific XML elements?
Additional Questions: Would there be a way to map a style to an element with a specific attribute, e.g. map a custom Word style "cool" --> <note type = "cool"></note>? I also do have my own XML document with mappings used previously with a different conversion system. Is there any way to import this?
What I have done so far: I know styles can be mapped to HTML elements, and I found the file containing the style mapping in oxygen-batch-converter-core-24.1-SNAPSHOT.jar by opening it with the Archive Browser. Is there a way for me to add a mapping from Word --> HTML, then add a mapping (somewhere) that takes the element made in the intermediary Word --> HTML step (in a Word --> DITA conversion) to convert that HTML element to an XML element of my choosing? I found some XSL files that appear to convert HTML (or XHTML) to XML in the same JAR file, but I am not well versed in XSL.
Thank you very much.