Adobe framemaker 6.0 User Manual
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 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.
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.
or EDEndElementRules statement.
Syntax
<ContextFormatRule
Begin context format rule
<If…>
An If clause (see “If, ElseIf, and Else statements” on page 170)
<ElseIf…>
An ElseIf clause (see “If, ElseIf, and Else statements” on page 170)
<ElseIf…>
Additional statements as needed
…
<Else…>
An optional Else clause (see “If, ElseIf, and Else statements” on
page 170)
page 170)
>
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…>
An If clause (see “If, ElseIf, and Else statements” on page 170)
<ElseIf…>
An optional ElseIf clause (see “If, ElseIf, and Else statements” on
page 170)
page 170)
<ElseIf…>
Additional statements as needed
…
<Else…>
An optional Else clause (see “If, ElseIf, and Else statements” on
page 170)
page 170)
>
End of LevelFormatRule