
ADOBE FRAMEMAKER 10
MIF Reference
151
•
An optional
EDInclusions
statement specifies elements that can appear anywhere in the defined element or in
its descendents.
The general rule specification must follow the conventions for data in a MIF string. If a general rule contains angle
brackets (
< >
), the right angle bracket must be preceded by a backslash in the MIF string. For example, an element
that can contain text might have the following general rule:
<EDGeneralRule `<TEXT\>'>
If you don’t provide a general rule statement for a container element, the MIF interpreter applies the default rule
<ANY>
. The rule means that any element or text is allowed.
The following general rule describes an element that must contain at least one element named Item.
<ElementDef
<EDTag `BulletList'>
<EDValidHighestLevel No >
<EDGeneralRule `Item+'>
<EDObject EDContainer >
>
# end of ElementDef
For more information about content rules, see the online manual
FrameMaker Structure Application Developer’s
Guide
.
Attribute definitions
Element definitions can specify
attribute definitions
, which describe attributes (information stored with an element
other than its content). The definition of an attribute can specify that the attribute is required for all elements with
the element definition. It can also provide a list of the values the attribute can have and a default value.
EDAttrDef statement
The
EDAttrDef
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.
Syntax
<EDAttrDef
Begin attribute definition
<EDAttrName
string
>
Attribute name
<EDAttrType
keyword
>
Attribute type
keyword
can be one of:
FAttrChoice
: a value from a list of choices
FAttrInt
: a signed whole number (optionally restricted to a
range of values)
FAttrInts
: one or more integers (optionally restricted to a range
of values)
FAttrReal
: a real number (optionally restricted to a range of
values)
FAttrReals
: one or more real numbers (optionally restricted to
a range of values)
FAttrString
: an arbitrary text string
FAttrStrings
: one or more arbitrary text strings
FAttrUniqueId
: a string that uniquely identifies the element
FAttrUniqueIdRef
: a reference to a UniqueID attribute
FAttrUniqueIdRefs
: one or more references to a UniqueID
attribute