Skip to main content
Participating Frequently
September 9, 2008
Question

Converting Tables Using FM Conversion Tables

  • September 9, 2008
  • 4 replies
  • 955 views
Hi All,

I need to convert a table from unstructured FM to the HTML-like format:


<table>
<tr>
<td><para>Cell 1</para></td>
<td><para>Cell 2</para></td>
</tr>

<tr>
<td><para>Cell 3</para></td>
<td><para>Cell 3</para></td>
</tr>
</table>


However, it seems I'm missing something because I cannot make FM to wrap <para> in <td>. If I setup the conversion this way:


TC: P:CellBody ---------------- td
TR:td+ ---------------- tr

...it works like a charm, but the content is inserted directly to <td>. If I try to define:

TC: P:CellBody ---------------- para
TE: E:para ---------------- td
TR:td+ ---------------- tr

... it doesn't work. What am I missing?

Thanks in advance,
Alex

This topic has been closed for replies.

4 replies

Participating Frequently
October 7, 2008
Thanks a lot, Rick!

It's working!

Alex
frameexpert
Community Expert
Community Expert
October 7, 2008
Hi Alex,

This seems to work:

P:CellBody---------------para
TC:----------------------td

Rick Quatro
rick at frameexpert dot com
www.frameexpert.com
Participating Frequently
October 7, 2008
Hi Russ,

Thank you for clarifying. So how can I get a table like this...

<table>
<tr>
<td><para>Cell 1</para></td>
<td><para>Cell 2</para></td>
</tr>

<tr>
<td><para>Cell 3</para></td>
<td><para>Cell 3</para></td>
</tr>
</table>

... in which the content itself is wrapped into PARA and then to TD?

Thanks,
Alex
Legend
September 9, 2008
Alex,

When you have something like:

TC: P:CellBody

The "TC:" part defines the table component that will be tagged. The "P:" part is only a qualifier. So when you have:

TC: P:CellBody ---------------- para

This says literally, "tag all tables cells with the para element IF it has a child paragraph with the CellBody format." I think you are expecting it to wrap the child paragraph itself, which isn't the case. It is still affecting the table cell only, just with a qualifier.

Russ