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:
install-dir/bin/dita -i input-file -f transformation-type -Dparameter-name=value -o output-dir
where:
- install-dir is the DITA-OT installation directory path.
- 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.
- output-dir is the output directory path for generated output.
Tip: If you add the install-dir/bin directory to the
PATH system variable, you can invoke the dita command without the
absolute path.
If processing is successful, nothing is printed on the terminal window.
If you do not specify an output directory, the dita command writes output to the out subdirectory of the current directory.
Example
The following command generates HTML5 output for the sequence.ditamap file and specifies that output is written to the test directory.
dita -i samples/sequence.ditamap -f html5 -o test