Using Attributes To Provide A Prefix Or Suffix - 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
U s i n g a t t r i b u t e s t o p r o v i d e a p r e f i x o r s u f f i x
FrameMaker can use the default value of an attribute to determine context. In the Table
example above, if Type is not specified for a table in a document, the table's initial format
will be Format A (the format for the default value Summary).
Note that in both the Item and the Table examples, you could use Else rather than
ElseIf to describe the second context. In the Item definition Numbered is the only other
possible value for the Type attribute from List, and in the Table definition Examples is
the only other possible value. When you use the Else specification, the label in the
definition is simply Else and you do not specify a context such as Type="Numbered".
You can test the values of multiple attributes by joining the specifications with an ampersand
(&). For example, this specification is true if the element has a Type attribute with the value
Numbered and a Content attribute with the value Procedure:
List [Type = "Numbered" & Content = "Procedure"]
In addition to testing for equality with attribute values, you can also use != to test for
inequality (with all attribute types) or a greater-than sign (>) or less-than sign (<) to test for
comparison (with the Choice and numeric types).
If you use a greater-than sign or a less-than sign with a Choice attribute in a format rule,
FrameMaker evaluates the name/value pair using the order in the list of values in the
attribute's definition, with the "lowest value" being the one on the left. For example, this pair
specifies any Security value that is to the left of Classified in the defined Choices
list for the Security attribute:
Report [Security < "Classified"]
For more detailed information on attribute name/value pairs in context specifications, and
the operators you can use with them, see "Attribute indicators" on page 136.

Using attributes to provide a prefix or suffix

A prefix is a text range that appears at the beginning of an element (before the element's
content); a suffix is a text range that appears at the end of an element (after the content).
An attribute value can provide the text for the prefix or suffix of a container. In this example,
the Note definition specifies that the prefix is the current value of the element's Label
attribute:
Element (Container): Note
General rule: <TEXT>
Attribute list
Prefix rule
Attribute Definitions
1. Name: Label
Choices: Important, Note, Tip
1. In all contexts.
Prefix: <attribute[Label]>
Font properties
Weight: Bold
Choice
Required
The value of the attribute
provides a text string for
the prefix.
182

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents