Writing Attribute Definitions For An Element - Adobe 65030365 - FrameMaker - PC Developer's Manual

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

Advertisement

11
W r i t i n g a t t r i b u t e d e f i n i t i o n s f o r a n e l e m e n t
values, whichever the user requests. Invalid values are identified by an x next to the
attribute name. If an attribute is missing a required value, the view shows a hole next to the
name. (The error information is in red on a color monitor.) For example:
Article
FrameMaker also identifies errors involving attributes when the end user validates the
document. For more information on the Structure View and how a user works with attributes,
see the FrameMaker user's manual.

Writing attribute definitions for an element

To make attributes available for an element, you need to define the attributes as part of the
element's definition. You can define attributes for any element in FrameMaker.
An element definition can have a list of attribute definitions. Within the list, each definition
must have a name, a type, and specification of whether an attribute value is required or
optional. If the attribute is of type Choice, the definition must also include a list of possible
values. For example:
Element (Container): Article
General rule: Para+, Section*
Attribute list
Element (Graphic): ImportedArt
Attribute list
You can optionally define a range of possible values (for the numeric attribute types) and a
default value (if a value is optional). You can also make any attribute read-only.
To write attribute definitions for an element, insert an AttributeList element. (If the
element is a container, table, table part, or footnote, the attribute list goes after the structure
rules.) When you insert the AttributeList element, the first Attribute child element
is inserted automatically. Define the first attribute, and then insert and define additional
Attribute elements as necessary. The definitions are numbered automatically.
Structure Application Developer's Guide
Security = Classified
Author =
<no value>
x
Draft# = 1.456
Para
1. Name: Author
2. Name: Security
Choices: Top Secret, Classified, Unclassified
1. Name: Width
Range: From 6 to 11
Default: 8.5
The Structure View can
show attribute name/value
pairs and identify errors.
String
Required
Choice
Optional
Real
Optional
Each attribute must have a
name, a type, and a required
or optional specification.
A Choice attribute also
needs a list of values.
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents