Omni Systems, Inc. Mif2Go User's Guide, Version 55

<< Prev | Next >>

> 29 Working with FrameMaker markers > 29.2 Adding custom marker types > 29.2.4 Using attribute markers for HTML or XML

### 29.2.4 Using attribute marker s for HTML or XML

For HTML or XML output, Mif2Go treats any FrameMaker marker that has a name that begins with Cell, Char, Graph, Link, Meta, Para, Row, or Table as an attribute marker. For HTML (for example), Mif2Go inserts the attribute="value" pair specified by each of the attribute marker types as follows:

Cell Attr | In the <td> or <th> tag for the enclosing table cell.
Char Attr | In the tag for the current or next inline element.
Graph Attr | In the next <img> tag.
Link Attr | In the next link (<a href=...>) tag.
Meta Type | In a <meta> tag; produces a new element, <meta name="Type" content="content">, in the <head> element.
Para Attr | In the tag for the current block element.
Row Attr | In the <tr> tag for the current table row; best practice is to place the marker in the first cell in the row.
Table Attr | In the <table> tag, in the enclosing table; if not positioned in a table, applies to the next table in the same flow.

Table 29-2 lists the elements to which each attribute marker can apply for each output type.

Table 29-2 Elements to which attribute marker s apply, by output type

Marker | Output type
HTML/XHTML | Generic XML | DITA XML | DocBook XML
Cell Attr | <td>, <th> | <td>, <th> | <entry>, <stentry>, <choption>, <chdesc>, <proptype>, <propvalue>, <propdesc> | <td>, <th>
Char Attr | inline elements | inline elements | inline elements | inline elements
Graph Attr | <img> | <img> | <image> | <imagedata>
Link Attr | <a> ( (does not apply to Help pop-ups, secondary window jumps, or footnote cross references) | <a> (applies to the AtagElement setting; do not use for name; overridden by XMLLinkAttrs) | <xref> (can add to or replace standard href, type, format, and scope attributes) | <xref>, <ulink>
Meta Type | <meta> | <meta> |  |
Para Attr | block elements | block elements | block elements | block elements
Row Attr | <tr> | <tr> | <row>, <strow>, <chrow>, <property> | <tr>, <row>
Table Attr | <table> | <table> | <table>, <simpletable>, <choicetable>, <properties> | <table>