Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

32 Working with content models > 32.7 Specializing or modifying DITA topic types > 32.7.1 Creating a content model for a specialized topic type


32.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 §32.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 [DITAParaTags] is also mapped to level 1 in [DITALevels], that format always starts a new topic of the specialized type. See §15.5.13 Specifying DITA element levels.

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

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

[DITAContentModels]

DITAnewtype = any text here (ignored)

See §32.7.5 Listing DITA topic type configuration files.

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



32 Working with content models > 32.7 Specializing or modifying DITA topic types > 32.7.1 Creating a content model for a specialized topic type