Export DitaMap from the command line

Post here questions and problems related to editing and publishing DITA content.
GingerSnap
Posts: 6
Joined: Fri Dec 12, 2014 8:28 pm

Export DitaMap from the command line

Post 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!
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Export DitaMap from the command line

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply