Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Converting Tables Using FM Conversion Tables

New Here ,
Sep 08, 2008 Sep 08, 2008
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

TOPICS
Structured
973
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Sep 09, 2008 Sep 09, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 07, 2008 Oct 07, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 07, 2008 Oct 07, 2008
Hi Alex,

This seems to work:

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

Rick Quatro
rick at frameexpert dot com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 07, 2008 Oct 07, 2008
LATEST
Thanks a lot, Rick!

It's working!

Alex
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines