Building output using the dita command

DITA Open Toolkit

Building output using the dita command

You can invoke DITA-OT and build output using the dita command.

Procedure

From the command prompt, issue the following command:
installation-directory\bin\dita -i input-file -f transformation-type -Dparameter-name=value

where:

  • input-file is the DITA map or DITA file that you want to process.
  • transformation-type is the transformation type.
  • parameter-name is the name of an optional parameter.
  • value is an applicable value for the optional parameter.

If you add installation-directory\bin directory to PATH system variable, you can invoke the dita command without the absolute path.

If you do not specify an output directory, by default, the DITA-OT writes the output to out subdirectory of current directory.

Example

The following command generates HTML5 output for the sequence.ditamap file and specifies the output is written to the test directory

dita -i samples/sequence.ditamap -o test -f html5