Adobe framemaker 6.0 User Manual

Page of 323
169
ADOBE FRAMEMAKER 6.0
 MIF Statements for Structured Documents and Books
Syntax
LevelFormatRule statement
The LevelFormatRule statement contains statements that specify an element’s formatting on the basis of 
the level to which the element is nested within specific types of ancestor elements. 
The LevelFormatRule statement contains a CountElements statement listing the tags of elements to count 
among the element’s ancestors and a statement specifying the tag of the element at which to stop counting. 
The LevelFormatRule statement also contains an If statement, zero or more ElseIf statements, and an 
optional Else statement. The If, ElseIf, and Else statements define the formatting applied to the element at 
specified levels of nesting within the ancestor elements specified by the CountElements statement.
The LevelFormatRule statement must appear in a format rules statement, such as an EDTextFormatRules 
or EDEndElementRules statement.
Syntax
<ContextFormatRule
Begin context format rule
<If…>
<ElseIf…>
<ElseIf…>
Additional statements as needed
<Else…>
>
End of
 ContextFormatRule 
statement
<LevelFormatRule
Begin level format rule
<CountElements
Optional list of elements to count among the element’s ancestors
<CountElement 
tagstring
>
Tag of element to count
<CountElement 
tagstring
>
Additional statements as needed
>
End of
 CountElements 
statement
<StopCountingAt 
tagstring
>
Optional tag of element at which to stop counting
<If…>
<ElseIf…>
<ElseIf…>
Additional statements as needed
<Else…>
>
End of LevelFormatRule