Reusable content (table) error

Post here questions and problems related to editing and publishing DITA content.
Bob.Conlin
Posts: 22
Joined: Sun Aug 14, 2011 5:21 am

Reusable content (table) error

Post 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.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Reusable content (table) error

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply