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.4 Using attribute markers for HTML or XML


29.2.4 Using attribute markers 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:

[spacer]

CellAttr

In the <td> or <th> tag for the enclosing table cell.

CharAttr

In the tag for the current or next inline element.

GraphAttr

In the next <img> tag.

LinkAttr

In the next link (<a href=...>) tag.

MetaType

In a <meta> tag; produces a new element, <meta name="Type" content="content">, in the <head> element.

ParaAttr

In the tag for the current block element.

RowAttr

In the <tr> tag for the current table row; best practice is to place the marker in the first cell in the row.

TableAttr

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 markers apply, by output type

Marker

Output type

HTML/XHTML

Generic XML

DITA XML

DocBook XML

CellAttr

<td>, <th>

<td>, <th>

<entry>, <stentry>, <choption>, <chdesc>, <proptype>, <propvalue>, <propdesc>

<td>, <th>

CharAttr

inline elements

inline elements

inline elements

inline elements

GraphAttr

<img>

<img>

<image>

<imagedata>

LinkAttr

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

MetaType

<meta>

<meta>

 

 

ParaAttr

block elements

block elements

block elements

block elements

RowAttr

<tr>

<tr>

<row>, <strow>, <chrow>, <property>

<tr>, <row>

TableAttr

<table>

<table>

<table>, <simpletable>, <choicetable>, <properties>

<table>



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