🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker.sgml
5 messages
5 total messages Started by Alex_Masycheff Tue, 09 Sep 2008 05:32
Converting Tables Using FM Conversion Tables
#784
Author: Alex_Masycheff
Date: Tue, 09 Sep 2008 05:32
31 lines
1336 bytes
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 goes to td
TR:td+ goes to tr

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

TC: P:CellBody goes to para
TE: E:para goes to td
TR:td+ goes to tr

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

Thanks in advance,
Alex
Re: Converting Tables Using FM Conversion Tables
#786
Author: Russ Ward
Date: Tue, 09 Sep 2008 13:02
13 lines
1165 bytes
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
Re: Converting Tables Using FM Conversion Tables
#672
Author: Alex_Masycheff
Date: Tue, 07 Oct 2008 13:07
23 lines
1064 bytes
Hi Russ,

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



<para>Cell 1</para>
<para>Cell 2</para>




<para>Cell 3</para>
<para>Cell 3</para>





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

Thanks,
Alex
Re: Converting Tables Using FM Conversion Tables
#673
Author: Rick_Quatro
Date: Tue, 07 Oct 2008 13:30
9 lines
826 bytes
Hi Alex,

This seems to work:

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

Rick Quatro
rick at frameexpert dot com
Re: Converting Tables Using FM Conversion Tables
#674
Author: Alex_Masycheff
Date: Tue, 07 Oct 2008 13:57
5 lines
686 bytes
Thanks a lot, Rick!

It's working!

Alex
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads