Page 1 of 1

Word 2 Dita

Posted: Tue Jul 15, 2014 4:34 pm
by nickw
Hi, I'm not much cop at all this coding but have been working through some stuff. I have run up against a problem when using the DOCX DITA transformation tool in Oxygen.
The dox2dita.xsl references wordm12simple.xsl and when a transformation is carried out the ANT (DOCX DITA) throws an error which points to wordm12simple.xsl. Researching wordm12simple.xsl, it seems that all the variables are not declared and are coming up as errors. The ANT output shows the following:

Code: Select all


transformWordToDita:
[echo] [INFO] Creating output directory C:\Users\Nick\Documents\Virgin Dita/out...
[echo] [INFO] Creating output file delete.me...
[echo] [INFO] Generating DITA documents from Word document in output directory C:\Users\Nick\Documents\Virgin Dita/out...
[echo] [INFO] Using XSLT C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\docx2dita.xsl...
[xslt] Processing C:\Users\Nick\Documents\Virgin Dita\temp\Virgin Modified for dita\word\document.xml to C:\Users\Nick\Documents\Virgin Dita\out\delete.me
[xslt] Loading stylesheet C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\docx2dita.xsl
[xslt]
[xslt] ==========================================
[xslt] DOCX 2 DITA
[xslt]
[xslt] Version: 0.9.19_OT17RC10 - build 1555 at 2013-04-06
[xslt]
[xslt] Parameters:
[xslt]
[xslt] + styleMapUri = "file:/C:/Program%20Files%20(x86)/Oxygen%20XML%20Editor%2016/frameworks/dita/DITA-OT/plugins/net.sourceforge.dita4publishers.word2dita/xsl/word-builtin-styles-style2tagmap.xml"
[xslt] + mediaDirUri = "file:/C:/Users/Nick/Documents/Virgin%20Dita/out/topics/media"
[xslt] + rootMapName = "Virgin Modified for dita"
[xslt] + rootTopicName = ""
[xslt] + submapNamePrefix= "map"
[xslt] + rootMapUrl = "Virgin Modified for dita.ditamap"
[xslt] + rootTopicUrl = ""
[xslt] + topicExtension = ".dita"
[xslt] + fileNamePrefix = ""
[xslt] + filterBr = "false"
[xslt] + filterTabs = "false"
[xslt] + language = "en-US"
[xslt] + outputDir = "file:/C:/Users/Nick/Documents/Virgin%20Dita/out/"
[xslt] + debug = "false"
[xslt] + includeWordBackPointers= "true"
[xslt]
[xslt] Global Variables:
[xslt]
[xslt] + platform = "windows"
[xslt] + debugBoolean = "false"
[xslt]
[xslt] ==========================================
[xslt]
[xslt] + [INFO] wordml2simple: Processing DOCX document.xml file to generate intermediate simpleML XML...
[xslt] C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\word-builtin-styles-style2tagmap.xml:219:7: Fatal Error! Error reported by XML parser Cause: org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files%20(x86)/Oxygen%20XML%20Editor%2016/frameworks/dita/DITA-OT/plugins/net.sourceforge.dita4publishers.word2dita/xsl/word-builtin-styles-style2tagmap.xml; lineNumber: 219; columnNumber: 7; Element type "style" must be followed by either attribute specifications, ">" or "/>".
[xslt] C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\wordml2simple.xsl:66: [b]Fatal Error! An empty sequence is not allowed as the value of variable $styleMapDoc[/b]
[xslt] Failed to process C:\Users\Nick\Documents\Virgin Dita\temp\Virgin Modified for dita\word\document.xml

BUILD FAILED
C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\build-word2dita.xml:151: The following error occurred while executing this line:
C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\build-word2dita.xml:195: Fatal error during transformation using C:\Program Files (x86)\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\docx2dita.xsl: [b]An empty sequence is not allowed as the value of variable $styleMapDoc;[/b] SystemID: file:/C:/Program%20Files%20(x86)/Oxygen%20XML%20Editor%2016/frameworks/dita/DITA-OT/plugins/net.sourceforge.dita4publishers.word2dita/xsl/wordml2simple.xsl; Line#: 66; Column#: -1

Re: Word 2 Dita

Posted: Tue Jul 15, 2014 5:18 pm
by sorin_ristache
Hi,

The DOCX DITA transformation comes from the Dita 4 Publishers plugin which is still not finished (it is in beta state). Please can you send us a sample DOCX document for reproducing this error?


Regards,
Sorin