Omni Systems, Inc. Mif2Go User's Guide, Version 55
> 29 Working with FrameMaker markers > 29.2 Adding custom marker types > 29.2.3 Understanding attribute markers
An attribute marker includes the name of the attribute as a suffix to the predefined custom marker type name. The content of the marker becomes the value of the attribute for the applicable element tag:
<elementname attributetype="content">
For example, for HTML output, a Rowbgcolor
marker with content yellow
,
placed in a FrameMaker table cell, would add the attribute bgcolor
with value yellow
to the HTML <tr>
tag for the current table row:
Nonconforming attribute markers
A few attribute markers do not conform exactly to this naming and usage
convention; for example, WAI support markers CellGroup
and CellSpan. See §26.2.4 Assigning table-cell attribute values with custom markers.
Another nonconforming attribute marker is MetaType. For HTML output, this
marker causes a <meta>
tag to be added
to the <head>
element; Type becomes the value of
the name
attribute, and the content of the
marker becomes the value of the content
attribute.
Concatenated attribute markers
Although the text of a FrameMaker marker is limited to 256 characters, Mif2Go gets around that restriction for attribute markers by concatenating all markers for the same attribute that are inserted before the next item to which they apply. You can just add more markers of the same type, and continue the content.
Using markers to add attributes can result in extra attributes for a given tag. Browsers ignore extra attributes, but validators would not be pleased; see §13.16 Passing W3C validation tests. (Of course validators would not be pleased with most of what is on the Web, so that might be of little consequence.)
If multiple attribute markers with identical names but different content apply to the same element, Mif2Go uses the content of the last marker encountered as the value of the attribute.
§25.1.3 Creating custom markers for WAI attributes
§29.2.4 Using attribute markers for HTML or XML
§29.7.2 Surrounding marker content with code