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

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

Advertisement

26
i s f m a t t r i b u t e
To specify only that the attribute is an attribute in both representations, use this version:
attribute "sgmlattr" is fm attribute;
To also rename it during translation, use this version:
attribute "sgmlattr" is fm attribute "fmattr";
To specify that the FrameMaker attribute is read-only—that is, that an end user cannot
change the attribute's value—use this version:
attribute "sgmlattr" is fm read-only attribute;
To specify that an attribute that takes numeric values can have values only in a particular
range, use this version:
attribute "sgmlattr" is fm attribute range from low to high;
To specify that a markup attribute with a particular declared value translates to a
FrameMaker attribute of a type other than the default translation, use this version:
structdv attribute "sgmlattr" is fm fmtype attribute;
Note that you can use more than one of the optional pieces of the is fm attribute
rule at the same time. For example, you can both rename an attribute and state that it
is read-only by using this version:
attribute "sgmlattr" is fm read-only attribute "fmattr";
Examples
To translate the markup sec attribute to the FrameMaker SecurityRanking attribute
in all elements in which it occurs, use this rule:
attribute "sec" is fm attribute "SecurityRanking";
To translate the markup sec attribute to the FrameMaker SecurityRanking attribute
in most elements in which it occurs, but to change it to the Section attribute in the
BookPart element, use these rules:
element "BookPart"
attribute "sec" is fm attribute "SecurityRanking";
Assume you have a markup attribute named perc with a declared value of CDATA, and
assume you know that this attribute always has values that are integers in the range from
0 to 100. You can translate the perc attribute to the Percentage attribute with this rule:
cdata attribute "perc"
Structure Application Developer's Guide
attribute "sec" is fm attribute "Section";
is fm integer attribute "Percentage" range from 0 to 100;
415

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents