Adobe 65030365 Developer's Guide - Page 299
Representing FrameMaker table properties implicitly in markup, and is fm property
UPC - 883919170923
View all Adobe 65030365 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 299 highlights
18 Modifications to the default translation If your DTD uses a particular attribute name for the same purpose within multiple elements, you may want to use this rule as a highest-level rule to set a default. For example, assume you have four different markup elements representing different types of tables. All four elements use the attribute numc to represent the number of columns in the table. In this case, you would use the rule: attribute "numc" is fm property columns; With this rule, the software interprets the attribute numc as the number of columns in a table for all elements in which it occurs. If you use the same attribute for another purpose in another element, you must write a local attribute rule to handle it appropriately. Alternatively, you may have only one element, tab, representing a table. In this case, you should restrict the association of numc with the columns property only to that element using this rule: element "tab" { is fm table element; attribute "numc" is fm property columns; } With this rule, other elements can use the numc attribute for different purposes. In both of these examples, the software doesn't create structure that corresponds to the numc attribute, but uses the attribute to read or write the appropriate information from instances of the table element. For information on the available table formatting properties and on the CALS attributes that map to formatting properties, see "Formatting properties for tables" on page 276. For information on the rules used in these examples, see "attribute" on page 367, "element" on page 376, "is fm table element" on page 435, and "is fm property" on page 424. Representing FrameMaker table properties implicitly in markup A table formatting property in FrameMaker may always have the same value when applied to a particular markup element representing tables in your application. If you don't have an attribute in markup for this property, you cannot assume that the software will appropriately format the table on the basis of the element. In that case you can use the following rule to specify the value explicitly: fm property prop { value is "propval"; } where prop is the name of the property and propval is the property value. This rule tells the software to assign a particular value to one of the formatting properties on import and not to write an attribute with the value on export. The fm property rule can be used at highest level to set a default or within an element rule to be restricted to a single element. Structure Application Developer's Guide 281