Export DitaMap from the command line

Posts: 6
Joined: Fri Dec 12, 2014 8:28 pm

Export DitaMap from the command line

Post by GingerSnap » Fri Jul 10, 2020 3:29 am

I am looking to export the ditamap as a step in a script that does a series of processing.
Is it possible to run the Export DitaMap command from the command line? I have the Oxygen command line license.

OR can you help me understand what I would need to do to emulate the Export Ditamap command if I need to write my own script to do it ?
I have tried using the DitaOTK build using the -f dita option, and it seems to gets me close, but it also makes changes such that I don't necessarily want, such as combining chunk-to topics so the ditamap is no longer valid to run on the output files. When I just use the Export Ditamap option, I can still do all my other processing on the ditamap without any alterations..


Posts: 7028
Joined: Fri Jul 09, 2004 5:18 pm

Re: Export DitaMap from the command line

Post by Radu » Fri Jul 10, 2020 6:39 am


At some point I created an open source DITA OT plugin in the Oxygen XML organization which exports the original DITA content as a zip:


Maybe you can try it, I'm not sure how it handles chunking, but I think it should ignore chunks.

Radu Coravu
<oXygen/> XML Editor

Post Reply