Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

30 Working with content models > 30.7 Specializing or modifying DITA topic types > 30.7.1 Creating a content model for a specialized topic type


30.7.1 Creating a content model for a specialized topic type

To create a content model for a specialized DITA topic type:

1. Run utility program dtd2ini with the DTD file for your specialized type as input. Specify for output a content-model configuration file with a name of the form DITAnewtype.ini, where newtype is the name of the new topic type you are defining. See §30.2.2 Generating a content model from a DTD.

2. Add the following settings to DITAnewtype.ini:

[Topic]

; TopicStart = name of element that starts topic, such as

;  "glossterm" (for glossary) or "title" (for every other type).

TopicStart = title

; TopicBody = name for its body element, such as conbody for

;  concept.

TopicBody = conbody

The required starting element is <title> for all built-in DITA topic types (including map), except for glossary. For glossary topics, the starting element is <glossterm>. For a specialized topic type, your DTD specifies the starting element.

When the FrameMaker format mapped to the TopicStart element in [DITATags] is also mapped to level 1 in [DITALevels], that format always starts a new topic of the specialized type. See §14.5.11 Specifying DITA element levels.

3. Add settings for table structure; see §30.7.7 Providing table structure information for DITA topic types.

4. In configuration file mif2htm.ini, list the name of your new topic type:

[DITAContentModels]

DITAnewtype = any text here (ignored)

See §30.7.5 Listing DITA topic type configuration files.

5. Place DITAnewtype.ini where Mif2Go can find it; see §30.7.6 Locating DITA topic type configuration files.



30 Working with content models > 30.7 Specializing or modifying DITA topic types > 30.7.1 Creating a content model for a specialized topic type