Hi!
What I mean is that different xml files that I have to import to framemaker may have slightly different number of columns, with varying widths, in a table.
Such as:
XML1:
<table>
<row>
<cell width="10">
<cell width="10">
<cell width="20">
<cell width="10">
<cell width="10">
</row>
</table>
XML2:
<table>
<row>
<cell width="10">
<cell width="20">
<cell width="10">
<cell width="20">
<cell width="10">
</row>
</table>
That means I can't just set the widths in r/w rules like: "10 10 20 10 10", I need to read the attributes from the xml files and import them as framemaker property values.
"If the cells do not occur in the XML document in left-to-right order, then use XSLT to calculate the widths of successive cells and set a column widths attribute for the table element accordingly."
So, I set the column widths as a space-delimited attribute in the table element?
"How do you know which column contains a particular cell?"
I understand that setting the width of individual cells in a table could get confusing. But when using the "resize columns..." in framemaker, you can select just one cell, and all the cells in that column will resize with it.
That's why I thought it might work to do the same in r/w rules.
Another thing I tried is to add a COLSPEC element to my xml, but I can't get that to work either... 
Rudi,
Ah, no problem. Don't set the widths in r/w rules but in an attribute on the <table> element, something like:
XML1:
<table widths="10mm 10mm 20mm 10mm 10mm">
<row>
<cell/>
<cell/>
<cell/>
<cell/>
<cell/>
</row>
</table>
XML2:
<table widths="10mm 20mm 10mm 20mm 10mm">
<row>
<cell/>
<cell/>
<cell/>
<cell/>
<cell/>
</row>
</table>
You didn't mention what units you are using, so I guessed mm. Alternatively, you can use proportional widths, by using an asterisk as the unit:
<table widths="10* 20* 10* 20* 10*">
This variation tells FM to use the entire available space (width of the column or page, as determined by the pgwide attribute) and to divide it up so that columns 2 and 4 are twice as wide as the other columns.
You can use <colspec> elements if you are using CALS tables, in particular, if you have a <tgroup> element.
--Lynne