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

Conversion tables and table entries

Community Beginner ,
Nov 05, 2013 Nov 05, 2013

I'm working on a conversion table to move our legacy products from unstructured FM to DITA. I understand the basic concepts but I'm having a problem with the table cells.

In my conversion table I have P:CellBody in the first row, mapped to entry with a qualifier of cellbody.

I also have TC mapped to entry.

The same holds true for P:CellHeading and TH.

Consequently, my text is wrapped in two entry elements. The Show Element Context tab shows:

entry

entry

row

tbody

tgroup

table

body

NoName

NoName

I'm pretty sure it should be the same as above with only one entry element (and of course with the NoNames fixed which I think I know how to do; I just haven't gotten there yet).

How do I avoid having my cells wrapped in two entry elements?

Thanks in advance,

Marsha

TOPICS
Structured
739
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

correct answers 1 Correct answer

Advisor , Nov 06, 2013 Nov 06, 2013

Marsha,

    I don't quite understand either what you are trying to do or what exactly is in your conversion table. Be aware, however, that FrameMaker will always create elements for the basic components that occur in your tables. The conversion table gives you limited control of how those elements will be tagged, but not whether the elements will exist.

   If your conversion table contains rows such as:

P:CellBodyentrycellbody
TC:entry

You will indeed get nested entry elements. The outer one is the

...
Translate
Advisor ,
Nov 06, 2013 Nov 06, 2013

Marsha,

    I don't quite understand either what you are trying to do or what exactly is in your conversion table. Be aware, however, that FrameMaker will always create elements for the basic components that occur in your tables. The conversion table gives you limited control of how those elements will be tagged, but not whether the elements will exist.

   If your conversion table contains rows such as:

P:CellBodyentrycellbody
TC:entry

You will indeed get nested entry elements. The outer one is the table cell itself and the inner one is the paragraph. FrameMaker does not permit a valid document to use the same element tag for both a cell and a container, so aside from the results not being what you wanted, they are not correct within FrameMaker.

If your table cells contain single paragraphs and you don't want elements for both the cells and the paragraphs, your conversion table doesn't even need to mention the CellBody and CellHeading paragraph tags. In fact, if your table formats use CellBody as the paragraph format for cells in the body of a table and CellHeading as the paragraph format for cells in the table heading, your EDD doesn't even have to apply the paragraph formats.

Another variation is to include a paragraph tag in a conversion table row for a table cell by combining TC: and P: to match table cells containing particular paragraphs. For example:

TC:P:CellBodyentry

creates cell elements named entry from table cells containing paragraphs tagged CellBody. The paragraph within such a cell is not wrapped in an additional element.

One final comment is that TH: in a conversion table refers to the entire table heading; its children are heading rows. The table body analog of TH: is TB:, not TC:.

       --Lynne

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 Beginner ,
Nov 07, 2013 Nov 07, 2013
LATEST

Thank you, Lynne.

The TC:P:CellBody and TC:P:CellHeading did the trick. I wasn't aware that we could nest like that. That is helpful to know.

Marsha

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