Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

29 Working with FrameMaker markers > 29.2 Adding custom marker types > 29.2.3 Understanding attribute markers


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:

<tr bgcolor="yellow">

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.

Also:

Inserting another marker of a different type between two markers for the same attribute does not prevent concatenation, even if the middle marker is a different attribute marker for the same element.

If you want the content of two concatenated attribute markers to be separated by a space in the attribute value, you must provide the space, either at the end of content in the first marker or at the beginning of content in the second marker.

Extra attributes

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.)

Duplicate markers

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.

See also:

§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



29 Working with FrameMaker markers > 29.2 Adding custom marker types > 29.2.3 Understanding attribute markers