This tutorial offers an introduction to authoring DITA in FrameMaker using the key features of the product. These examples use the tutorial files included with this article.
With FrameMaker 8, authoring DITA in FrameMaker is now easier than ever. In the first tutorial module, you will open, edit, and save a DITA topic.
<dl> element and all its sibling elements.<section> element.<title> element is automatically inserted as a child element.<title> element, type ConsMove the insertion point from the <title> element
to a next-sibling position, immediately below the <title> element.
Tip: You can also move your cursor out of an element and to the position directly below it using the following keyboard shortcut: Esc s D.
<ul> and click
Insert. Note that an <li> element is automatically inserted as
a child with a <p> element grandchild.<p> grandchild is automatically inserted to
facilitate the addition of multiple elements within the <li> element. In
circumstances where only text will be contained by the <li>, the <p> element can be deleted and text can be typed directly into the <li> element.<p> element, type NoneTo create a new DITA map:
<map>.Type custom_reviews.ditamap and click Select.
Note: If you don't provide a filename extension for the new file, one is added based on the type specified in the Default File Type option in the DITA Options dialog box. DITA map files are given a ditamap extension.
A new window opens for your new DITA map with the default title text MAP TITLE.
<map> element bubble.From the Select a file dialog box, choose review_ditamagic.dita, and then click Select.
A <topicref> element with <fm-topicreflabel> child element has been added to your DITA map.
<topicref> element.From the Select a Topicref File dialog box, choose review_datapersister.dita, and click Select.
Another <topicref> element with an <fm-topicreflabel> child element has been added to your DITA map.
In
the Document window, double-click the text of the new <topicref> element that was inserted in the last step.
The review_datapersister.dita file opens. Notice the <simpletable> element that was imported within the file. Since <simpletable> elements have no cols attribute to tell FrameMaker how many columns to
expect, the program counted the number of columns before importing. By default, simpletable and reltable elements are supported in this way.
To build a book from a DITA map:
Choose DITA > Build FM DITABook from DITA Map file.
Note: Always use this method to open a DITA map when
building a book. Doing so ensures that all the conref and xref elements are automatically resolved.
In the Save Book dialog box, type reviews_revised.book, then click Save.
A book window appears, and each file is added to the book. All of the power and capabilities of FrameMaker books are now at your disposal—from Table of Contents and Index generation to the creation of high-quality PDF and HTML output.
The task element that was nested in the Review:
DitaServer topic by editing the DITA map is imported within the
review_ditaserver.dita file as a separate, nested fm-ditafile element.
Note: Double-clicking one of the files in the book window opens that file as iconified. Double-click the file name in the book window a second time to open it fully.
This article has provided a brief introduction to topic-based authoring with DITA using the DITA features of FrameMaker 8. Through mechanisms such as topic specialization, DITA maps, and conrefs, DITA can enable authoring groups to attain greater levels of content reuse than were previously possible in typical structured authoring workflows. With its built-in support for DITA, FrameMaker 8 lets users leverage this power from within a familiar WYSIWYG authoring environment.
The following resources provide more information about DITA and Adobe FrameMaker 8: