Adobe framemaker 6.0 User Manual

Page of 323
165
ADOBE FRAMEMAKER 6.0
 MIF Statements for Structured Documents and Books
Format rules
Format rules allow the template builder to specify the format of an element in specific circumstances. A 
format rule can be either a context rule or a level rule.
context rule contains clauses that specify an element’s formatting based on its parent and sibling 
elements. For example, one clause of a format rule could specify that a Para element has the FirstBody 
paragraph format if it is the first child of a Heading element. Another clause could specify that a Para 
element has the Body paragraph format in all other contexts.
level rule contains clauses that specify an element’s formatting on the basis of the level to which it is 
nested within specific types of ancestor elements. For example, one clause of a level rule could specify that 
a Para element appears in 12-point type if it has only one Section element among its ancestors. Another 
clause could specify that a Para element appears in 10-point type if there are two Section elements among 
its ancestors.
Element definitions contain format rules grouped into the following statements:
EDTextFormatRules 
EDObjectFormatRules 
EDPrefixRules 
EDSuffixRules 
EDStartElementRules 
EDEndElementRules 
EDTextFormatRules statement
The EDTextFormatRules statement defines the formatting properties to be applied to a container, table, 
table child, or footnote element in different contexts. It must appear in an ElementDef statement. An 
EDTextFormatRules statement can contain zero or more substatements describing level and context 
format rules.