Expected Format of DOCX Files
Posted: Fri Nov 29, 2013 6:55 pm
I have been attempting to get MS Word DOCX files to DITA transformations to work, but I have been unsuccessful so far. When I open a DOCX file in Oxygen 15.1, this is the failure I see when executing the transform scenario:
Based on this error, it looks like the first line of the Word document must have the Title style. Therefore, I delete both the out and temp folders located in the Oxygen project folder, edit the Word document by adding a new line set to the style of title: Test.
I then save the DOCX file in Word followed by reopening Oxygen to try again. When I retry the transformation, I now see this error:
It looks like there is an expected format that the Word document must be in in order for the DITA transformation to be successful. Is there any guide to what this expected format must be? I am currently only having issues with the DITA transformation. The DOCX TEI P5 transformation works without issue.
Thanks.
Code: Select all
[xslt] - [ERROR] The first block in the Word document must be mapped to the root map or topic title.
[xslt] First para is style Normal, mapped as <style xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:public:dita4publishers.org:namespaces:word2dita:style2tagmap" styleName="Normal" tagName="p" topicZone="body" level="1"/>
I then save the DOCX file in Word followed by reopening Oxygen to try again. When I retry the transformation, I now see this error:
Code: Select all
[xslt] + [DEBUG] generateTopicrefs: Starting, level=1
[xslt] C:\Program Files\Oxygen XML Editor 15\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\simple2dita.xsl:554: Fatal Error! An empty sequence is not allowed as the value of variable $firstP
Thanks.