Convert Word documents to DITA

Learn how to convert Microsoft Word documents into DITA documents and map.

FrameMaker allows you to migrate your existing Word documents (.docx) into DITA topic type documents. You need to specify the input and output folder locations along with other parameters and the document gets converted into DITA document. Depending on the content, you could have a .dita file and a .ditamap file.

To be able to convert a Word document successfully, your document should be well structured. For example, your document should have a Title, followed by Heading 1, Heading 2, and so on. Each of the headings should have some content in it. If your document is not well structured, the process might not work as expected.

By default, FrameMaker uses the Word-to-DITA (Word2DITA) transformation framework. This transformation depends on the style-to-tag mapping configuration file. To be able to use the Word2DITA transformation successfully, you must consider the following guidelines for preparing your Word document for conversion:

Note: If you make any changes in the default style-to-tag mapping configuration file, then you must update and use the guidelines confirming to your updated style mapping.

To convert a Word document to DITA, perform the following steps:

  1. Choose Structure > Utilities > Convert Word (.docx) to DITA.

    The Convert Word (.docx) to DITA dialog box appears.

    Figure 1. Word to DITA conversion dialog box

  2. In the Convert Word (.docx) to DITA dialog box, provide the following:

    • File: Path of the source Word file that you want to convert.

    • Style to Tag Map: The mapping file used for conversion. The default mapping file is available at the following location:

      C:\Users\<username>\AppData\Roaming\Adobe\FrameMaker\16\X2DITA\Word2DITA\style2tagMap.xml

      You can add your customizations to the default mapping file. If you are using a file different from the source mapping file, then update the path of the file in the Style to Tag Map location.

    • Output DITA Files > Directory: Output location to save the converted DITA document. By default, a DITA map file is created with the name of the source Word document. The topics folder contains .dita files, which are created on the basis of the mapping file’s configurations. The topics directory contains a media subdirectory, which contains all media files used in the source Word document.

Note: See a video on Import Word content to DITA.