Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

15 Converting to DITA XML > 15.6 Converting tables to DITA XML > 15.6.5 Configuring DITA table components > 15.6.5.3 Specifying relative vs. absolute widths for table columns


15.6.5.3 Specifying relative vs. absolute widths for table columns

DITA <simpletable> elements do not have absolute column widths or table widths; all you get are relative column widths. For valid DITA XML, you have to use a PI to set absolute column or table width. However, for <table> elements you can specify either absolute or relative column widths. By default, Mif2Go uses absolute widths.

To specify relative instead of absolute table and column widths for <table> elements:

[DITAOptions]

; TableColsRelative = No (default, in points using pt, in colspec

; width attributes) or Yes (in percents using *)

TableColsRelative = Yes

When TableColsRelative=Yes, for relative widths Mif2Go produces (for example):

<colspec colnum="1" colname="col1" colwidth="81*" />

<colspec colnum="2" colname="col2" colwidth="108*" />

Those relative widths (denoted by the *) turn inches into points, resulting in 1.125" = 81pt, and 1.5" = 108pt.

When TableColsRelative=No, Mif2Go produces instead:

<colspec colnum="1" colname="col1" colwidth="81pt" />

<colspec colnum="2" colname="col2" colwidth="108pt" />



15 Converting to DITA XML > 15.6 Converting tables to DITA XML > 15.6.5 Configuring DITA table components > 15.6.5.3 Specifying relative vs. absolute widths for table columns