Processing to DocBook targets

This topic assumes you have already installed DITA Open Toolkit and its prerequisite products, and have verified your installation, as described in the installation chapter of this document.
In general, the instructions in this topic assume the Windows environment; the procedure is very similar in other operating system environments.
  1. If you have not already done so, create MY_DITA_OUTPUT and MY_DITA_SOURCE directories in the root directory of your C: drive (or your /home directory in Linux).
  2. If you have not already done so, copy the garage sample files into the MY_DITA_SOURCE directory.

    You should have a directory structure that looks like this:

  3. View and edit, if necessary for your specific working environment, MY_DITA_SOURCE/ant_scripts/garage_hierarchy_docbook.xml.
    These are the significant Ant parameters and how they are set:
    • args.outdir is set to send the output to MY_DITA_OUTPUT.
    • args.input is set to use the hierarchy ditamap.
    • transtype is set to docbook.
  4. In the Command Prompt, move to MY_DITA_SOURCE/samples/garage/ant_scripts and invoke the above Ant script. For example: ant -f garage_hierarchy_docbook.xml
  5. After the DocBook file has processed successfully, go to the MY_DITA_OUTPUT directory. Your directory structure should look like this:

    The docbook subdirectory should contain these directories and files:

  6. Open the file hierarchy.xml to view the DocBook output. In Arbortext Editor, the file should look something like this: