Fm Attribute - Adobe 65030365 - FrameMaker - PC Developer's Manual

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

Advertisement

26
f m a t t r i b u t e

fm attribute

You use the fm attribute rule with the "drop" subrule to discard an attribute that you've
defined for a FrameMaker element but that does not exist on the corresponding markup
element. Read/write rules do not support double-byte characters, so you cannot use this
rule to drop attributes with double-byte characters in their names.
Synopsis and contexts
1. fm attribute "attr" drop;
2. element "gi" {. . .
fm attribute "attr" drop;
. . .}
Arguments
attr
gi
Examples
Assume the element chapter exists in both the markup and FrameMaker
representations of your documents. In FrameMaker, you use the XRefLabel attribute in
formatting cross-references to this element. Since this attribute exists only for formatting
purposes, you don't want it in the markup document. To drop this attribute on export, use
this rule:
element "chapter" {
}
If you use the XRefLabel attribute on many elements for the same purpose, you can
discard it from all elements on export with this rule:
fm attribute "XRefLabel" drop;
If you want to keep the XRefLabel attribute on the appendix element, but drop it from
all others, use these rules:
element "appendix" {
}
fm attribute "XRefLabel" drop;
Note that the order of these rules is not important. If you reversed them, the XRefLabel
attribute would still be correctly interpreted for the appendix element, since that
reference to the attribute is more specific. Note also that case is sensitive for fm attribute
names.
Read/Write Rules Reference
A FrameMaker attribute name.
A generic identifier.
is fm element;
fm attribute "XRefLabel" drop;
is fm element;
attribute "xreflab" is fm attribute "XRefLabel";
396

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents