Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

37 Converting via DCL > 37.4 Command-line examples > 37.4.6 Generating DITA output via command line


37.4.6 Generating DITA output via command line

After you have set up a DITA project, you can run the conversion from the command line (see §37 Converting via DCL), as follows:

1. Run the conversion first from within FrameMaker, via File > Save using Mif2Go. On the Export dialog, replace the value of Suffix for created files: with .dcl. This will produce a filename.dcl file for each FrameMaker file (see §3.7.2 Specifying output type and file extension).

2. Open a Windows Command Prompt window and cd to your project directory, which now contains one or more .dcl files, along with your project configuration file.

3. Type the following command at the command prompt, then press Enter:

dcl -t htm -f DITA -o .dita filename.dcl

where filename is the name of one of the FrameMaker files you converted. (See §37.2.4 Converting a group of MIF or DCL files for batch conversions.)

This process will produce a new filename.dita. If the process appears to be taking more than a few seconds, terminate it with Ctrl+C.

If you modify anything in a FrameMaker file, you will have to start from Step 1 again and regenerate the .dcl for that file. Otherwise, you can iteratively change settings in the configuration file and rerun from the command line until you are satisfied with the result.



37 Converting via DCL > 37.4 Command-line examples > 37.4.6 Generating DITA output via command line