Page 1 of 1

DOCX transformation fails

Posted: Mon Nov 30, 2020 9:18 pm
by Jesse
Hello,

I'm using Oxygen 20.1 to run a transform to convert a Word file to DITA (New Transformation > DITA-OT Transformation > DOCX). It keeps failing with the following error:

Code: Select all

Transformation failed. C:\Program Files\Oxygen XML Editor 20\frameworks\dita\DITA-OT2.x\plugins\org.dita.base\build_preprocess.xml:55: Failed to run pipeline: [DOTJ022F][FATAL] Failed to parse the input file 'file:/C:/Users/.../AppData/Local/Temp/OxygenXMLTemp/ditaTemporaryOutputDir-1606751643244/t1/t2/t3/t4/t5/document.xml' because all of its content has been filtered out. This will happen if the input file has filter conditions on the root element, and a ditaval excludes all content based on those conditions.
I'm not specifying any ditavals or conditionalizing of any sort in the transformation scenario. I haven't modified anything else about the transformation scenario. I'm running it off the document.xml file that appears when I open the Word file in the Archive Browswer.

Any ideas?

Thanks,
Jesse

Re: DOCX transformation fails

Posted: Tue Dec 01, 2020 1:15 am
by Radu
Hi Jesse,

You seem to want to use the publishing engine on a document.xml file which is not a DITA resource. Also the "DOCX" transformation converts DITA to Word and not the other way around.
We have this topic about converting Word to DITA:

https://www.oxygenxml.com/doc/versions/ ... -dita.html

Regards,
Radu

Re: DOCX transformation fails

Posted: Tue Dec 01, 2020 4:13 pm
by Jesse
Hi Radu,

Thanks for your reply!

I was trying to use this method from the help link you sent:
https://www.oxygenxml.com/doc/versions/ ... __method_4

I didn't see a DOCX Dita option, so I just used the DOCX option, but I guess that's for creating DITA>Word.

I also tried the Word to Dita (DITA 4 Publishers) transformation scenario (using the same document.xml file, but that fails with the following errors:

Code: Select all

Transformation failed. C:\Program Files\Oxygen XML Editor 20\frameworks\dita\DITA-OT2.x\plugins\org.dita4publishers.word2dita\build-word2dita.xml:181: Error while expanding C:\Users\budaj\AppData\Local\Temp\OxygenXMLTemp\ditaTemporaryOutputDir-1606828304539\t1\t2\t3\t4\t5\document.xml
I may try getting HTML out of Frame and using that instead.

-Jesse

Re: DOCX transformation fails

Posted: Tue Dec 01, 2020 4:59 pm
by Radu
Hi Jesse,

The procedure you want to follow has three main steps:
Save the document in the MS Word DOCX format.
Open it in the Archive Browser view in Oxygen XML Editor and then open the document.xml file contained in the archive.
Run the built-in DOCX DITA transformation scenario. This scenario runs a build file over the DOCX archive and should produce a DITA project that contains a DITA map and multiple topics.
Did you open the document.xml from the Archive browser in the Oxygen main editing area? If so, if you use the "Configure Transformation Scenarios" toolbar button from the main editing area you will find there a predefined transformation scenario named DOCX DITA which can be applied on it.

But my recommendation for converting Word to DITA is to use our Batch Converter add-on:
https://www.oxygenxml.com/doc/versions/ ... pq_xn4_vjb

Regards,
Radu