If you store the table format name in an attribute of the table (object), you can use r/w rules to map it. The following rules are used for DITA processing ..
element "tgroup"
{
is fm table element;
attribute "cols" is fm property columns;
attribute "outputclass"
{
is fm attribute "outputclass";
is fm property table format;
}
attribute "colsep" is fm property column ruling;
attribute "rowsep" is fm property row ruling;
attribute "align" is fm attribute;
attribute "charoff" is fm attribute;
attribute "char" is fm attribute;
attribute "colwidth" drop;
}
You'll notice the outputclass attribute is defined as the table format property. Note that this is an attribute of the "tgroup" element, which in the DITA model is the table object. The table element is actually a container that wraps the tgroup object.
Cheers,
...scott
Russ,
Thanks for letting me know my messages were not getting through. I just replied to the original rather than going through the forums interfaces and had no idea there was a problem. I attempted to post twice on this thread today:
The messages were:
Russ,
You are correct. An EDD can specify an initial table format. The word "initial" is key. It is the format that is used when a new table is created, whether the new table is created interactively by the user or by opening an SGML or XML document. Initial table formats do not affect existing tables. In fact, for a table created interactively, the initial table format determines the format that is highlighted when the Insert Table dialog first comes up. The user is free to choose another format if desired.
and
Qualar,
R/w rules are not context sensitive so that if you are using a tgroup element within FM, they will not be able to help. The definition of tgroup in your EDD can set an initial table format of Format A if the tgroup is within the table element and Format B if the tgroup is within informaltable. Just make sure you have imported the EDD into the template before opening the XML document. As you've noticed, if you open the XML document and then import the EDD, the tables already exist and their format is not affected.
--Lynne