Adobe 65030365 - FrameMaker - PC Developer's Manual page 199

Structure application developer's guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

11
U s i n g a t t r i b u t e s t o f o r m a t e l e m e n t s
type for each instance of the element and have the instance formatted according to that
information. (If you did not use an attribute, you would need to define two separate List
elements.)
In the List element definition give the element a Type attribute, and in the Item definition
refer to the possible values for the attribute in the text format rules. The Item definition in
this example specifies that each Item begins with a bullet if it appears in a List that has
a Type attribute with the value Bulleted, or the Item begins with an incrementing number
if it appears in a List that has a Type attribute with the value Numbered:
Element (Container): List
General rule: Item+
Attribute list
Element (Container): Item
General rule: <TEXT>
Text format rules
You can refer to attribute values in object format rules as well as in text format rules. In this
example, a Table uses Format A if its Type attribute has the value Summary or it uses
Format B if its Type attribute has the value Examples:
Element (Table): Table
General rule: Title, Heading, Body
Attribute list
Initial table format
Structure Application Developer's Guide
1. Name: Type
Choices: Bulleted, Numbered
1. If context is: List [Type = "Bulleted"]
Numbering properties
Autonumber format: \b\t
Character format: bulletsymbol
Else, if context is: List [Type = "Numbered"]
1.1 If context is: {first}
Numbering properties
Autonumber format: <n=1>\t
Else
Numbering properties
Autonumber format: <n+>\t
1. Name: Type
Choices: Summary, Examples
Default: Summary
1. If context is: [Type = "Summary"]
Table format: Format A
Else, if context is: [Type = "Examples"]
Table format: Format B
Choice
Required
Choice
Optional
The value of the attribute
(from the List element)
determines a context for
text formatting.
The value of the attribute
(from the current element)
determines a context for
object formatting.
181

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents