Page 1 of 1

bluk DITA-to-Json conversion

Posted: Fri Nov 25, 2022 11:32 pm
by jeff_hooker
Hi folks,
I've got a team who wants to convert an immense volume of DITA content into Json for the purposes of using it for a machine learning project. Is there a way of accessing the DITA-to-Json tool from the command line?
Thanks,
Jeff.

Re: bluk DITA-to-Json conversion

Posted: Sat Nov 26, 2022 7:52 pm
by chrispitude
Hi Jeff,

If you have a license for Oxygen Scripting, you can run it from the command line as described here:

Scripting Oxygen > Batch Converter

The usage given is as follows:

Code: Select all

sh scripts/batchConverter.sh -i inputFiles -if inputFormat -o outputDirectory 
-of outputFormat [-ss (true|false)] [-csd (true|false)] [-cs converterSettingsFile]