Hi all,
I am trying to transform DITA content to DOCX using the com.elovirta.ooxml plugin. While I have been successful getting output, I am having trouble with styles in the DOCX template file being applied to elements. I am currently using the default Normal.docx template file provided with the plugin and use Office 365 to open the files in Word.
I have had success with the following styles:
- topic titles: the "Heading 1," "Heading 2," etc. styles were applied to the topic titles
- highlighting domain elements: text that was tagged as bold, italic, and underlined in a topic was rendered as bold, italic, and underlined in the DOCX file
- <ul> and <ol> were rendered as bulleted and numbered lists
The styles are
not being applied to
all other elements. Instead, it appears that the "Normal" style is being applied to block elements and "Body Text" to inline elements by default.
As an example of what styles I believe should be applied, consider the document.sw-d.xsl file which contains the following code:
If I understand this correctly, I would think that the "HTMLVariable" style in the DOCX template would be applied to the <varname> element and the "HTMLKeyboard" style would be applied to <userinput>. Instead the "Body Text" style gets applied to both elements.
Any tips on what I may be doing wrong or misunderstanding?
Thanks,
Jonathan Hanna