Discarding A Markup Or Framemaker 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

16
M o d i f i c a t i o n s t o t h e d e f a u l t t r a n s l a t i o n
your markup that a page or line break is desired. You can discard this element when the
markup document is imported to FrameMaker and have a structure API client insert the
necessary break; there is no need to mark the break with an element. To drop an element
on import, use this rule:
element "break" drop;
As another example, you may have a table that always has the same column headings. For
this reason, you choose not to include an element for the column headings in the XML or
SGML representation. If your table is to have column heading in FrameMaker, however, the
headings must be in elements; you would discard these elements on export using this rule:
fm element "ColumnHead" drop;
The drop rule actually discards the data—if you use the drop rule and want the element
to be restored when you are translating a document in the other direction, you must write
a structure API client.
For information on these rules, see "element" on page 376, "fm element" on page 397, and
"drop" on page 373.
If you use either of these rules, you may want to use the preserve fm element
definition rule to aid in the maintenance of your EDD. If you do not, updating your EDD
on the basis of a modified DTD may change your EDD definitions in ways you do not intend.
For information on this rule, see "preserve fm element definition" on page 448.
For information on creating a structure API client, see the Structure Import/Export API
Programmer's Guide.

Discarding a markup or FrameMaker attribute

If you use attributes in markup for purposes that have no counterpart in FrameMaker, or for
purposes for which you must supply a structure API client, you can choose to discard these
attributes. To discard an attribute for all elements that use it, use one of these rules:
attribute "attr" drop;
fm attribute "attr" drop;
where attr is an XML, SGML, or FrameMaker attribute name.
To discard the attribute for a single element, use one of these rules:
element "gi" attribute "attr" drop;
element "gi" fm attribute "attr" drop;
where gi is a generic identifier and attr is an XML, SGML, or FrameMaker attribute name.
For example, assume that you have these declarations in SGML:
<!ELEMENT par - O (#PCDATA)>
<!ATTLIST par fontsize NUMBER 10>
Structure Application Developer's Guide
241

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents