Page 1 of 1

Export DitaMap from the command line

Posted: Fri Jul 10, 2020 3:29 am
by GingerSnap
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..

Thanks!

Re: Export DitaMap from the command line

Posted: Fri Jul 10, 2020 6:39 am
by Radu
Hi,

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:

https://github.com/oxygenxml/dita-export-map

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

Regards,
Radu