Page 1 of 1

Reusable content (table) error

Posted: Fri Sep 16, 2011 7:21 pm
by Bob.Conlin
I created a table (it's a CALS table, 3 rows, and is used many times) and then did "Create Reusable Component" on the DITA menu. In several different topics I imported this table with "Insert Reusable Content" on the DITA menu. Now I'm getting the following Authoring error: "W [Author layout]:Cannot create a table. A table element cannot contain children other than elements and comment." associated with each occurance. I can still transform to PDF but everytime validation occurs the same error pops up. How do I fix this? The imported table looks like this:

<table conref="Standard_element_opt.xml#ReusableComponent_4p1_fwz_pd/table_Opt_Table_Options"
id="table_rc4_txz_pd">
<tgroup cols="cols_1dn_txz_pd">
<tbody>
<row>
<entry/>
</row>
</tbody>
</tgroup>
</table>

I have a Note element the I use as a reuseable component but there are no errors for the Note.
Thanks again for your help.

Re: Reusable content (table) error

Posted: Mon Sep 19, 2011 10:08 am
by Radu
Hi Bob,

I reproduced the problem, we'll try to fix it in Oxygen 13.1.
In the meantime you can open the CSS stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/conrefs.css

and add at the beginning of the CSS these CSS selectors:

Code: Select all

*[class~="topic/table"][conref],
*[class~="topic/table"][conkeyref]{
display : block;
}
This should remove the layout error messages.

Regards,
Radu