RTF transform seems incomplete
Posted: Wed Apr 04, 2018 8:36 pm
When I try to use the "DITA Map RTF" transform, I get the following error:
build_dita2wordrtf.xml, line 75 is:
Some research led me here: https://github.com/dita-ot/dita-ot/issues/2607 which states:
"Templates that use output-message.xsl must also import dita-utilities.xsl. Add the missing import to your shell stylesheet."
The topicmerge.xsl file uses output-message.xsl. I added line 14 to topicmerge.xsl:
And the RTF transformation worked.
Is this the right solution? If so, is this a bug that Oxygen could fix in a maintenance build?
In the interim, is there a way I can push this fix to my writers via a customized transform, perhaps, or otherwise? I can't find a place in the default RTF transform Parameters where I could add this line. I've also tried duplicating the org.dita.wordrtf to a custom location so I can comfortably modify the topicmerge.xsl without touching the original, but calling this custom location as a transform option hasn't been working (I pointed the RTF Transform scenario > Advanced > Custom build file to the new location). The build says "successful" after about 1 second but no output appears.
Code: Select all
Transformation failed. /Applications/Oxygen XML Author/frameworks/dita/DITA-OT2.x/plugins/org.dita.wordrtf/build_dita2wordrtf.xml:75: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
Code: Select all
style="${dita.plugin.org.dita.wordrtf.dir}/xsl/topicmerge.xsl">
"Templates that use output-message.xsl must also import dita-utilities.xsl. Add the missing import to your shell stylesheet."
The topicmerge.xsl file uses output-message.xsl. I added line 14 to topicmerge.xsl:
Code: Select all
12 <!-- Include error message template -->
13 <xsl:import href="plugin:org.dita.base:xsl/common/output-message.xsl"/>
14 <xsl:import href="plugin:org.dita.base:xsl/common/dita-utilities.xsl"/>
Is this the right solution? If so, is this a bug that Oxygen could fix in a maintenance build?
In the interim, is there a way I can push this fix to my writers via a customized transform, perhaps, or otherwise? I can't find a place in the default RTF transform Parameters where I could add this line. I've also tried duplicating the org.dita.wordrtf to a custom location so I can comfortably modify the topicmerge.xsl without touching the original, but calling this custom location as a transform option hasn't been working (I pointed the RTF Transform scenario > Advanced > Custom build file to the new location). The build says "successful" after about 1 second but no output appears.