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

<< Prev | Next >>

> 24 Converting tables to HTML > 24.4 Specifying table attributes > 24.4.2 Overriding attributes for selected tables

### 24.4.2 Overriding attributes for selected tables

To specify HTML <table> attributes for a single table or a group of tables:

[TableAttributes]

; Table ID = text (macro) to put inside table element, overrides

; settings in [Tables] for Border, Spacing, and Padding, and

; [Attributes] for table

SomeTable = attribute="value"

On the left of the = sign you can specify a TableID, a table format name, or a table group name, and you can use wildcards in the name. See §24.2.2 Creating table groups.

On the right of the = sign you can include any arbitrary HTML, even macros (see §28 Working with macros) and JavaScript (perhaps something like onmouseover="javascript:dosomething(now)"). Just keep it all on the same line.

For example, to maintain table cell borders more or less as they were in FrameMaker, rather than use a global setting for all tables (as you would in the [Tables] section or in the [Attributes] section), you can set the borders based on the table format name:

[TableAttributes]

FormatA= border="0" cellspacing="2" cellpadding="1"

Values you specify in the [TableAttributes] section override corresponding settings in the [Tables] section, and also override any attributes you assign to the table element in the [Attributes] section. However, see §24.4.8.2 Taming border, cellspacing, and cellpadding settings for special constraints on specifying values for border, cellspacing, and cellpadding.

See also:

§24.1.2 Understanding precedence of assignment methods