A sample table in a cell

Post here questions and problems related to editing and publishing DITA content.
chrupek
Posts: 3
Joined: Tue Mar 13, 2018 4:12 pm

A sample table in a cell

Post by chrupek »

Hi,

I have a table that discusses different table options. In some cells I have sample tables to illustrate that options. When validating the document, I get the following error:

Unexpected element "table". The content of the parent element type must match "(dl|parml|fig|syntaxdiagram|imagemap|image|lines|lq|note|hazardstatement|object|ol|p|pre|codeblock|msgblock|screen|sl|ul|boolean|cite|keyword|button-element|link-element|interface-tag|interface-attribute|interface-attribute-value|interface-template|api-call|http-method|http-response|apiname|option|parmname|cmdname|msgnum|varname|wintitle|ph|b|i|sup|sub|tt|u|codeph|synph|filepath|msgph|systemoutput|userinput|menucascade|uicontrol|q|term|abbreviated-form|tm|xref|state|data|data-about|foreign|unknown|draft-comment|fn|indextermref|indexterm|required-cleanup)".

Can I "pack" my table into any of these elements to avoid the error?
sorin_carbunaru
Posts: 398
Joined: Mon May 09, 2016 9:37 am

Re: A sample table in a cell

Post by sorin_carbunaru »

Hello,

As explained in the DITA styleguide, yes you can create nested tables by wrapping the second table in a paragraph, but nested tables should usually be avoided.

By the way, from what I noticed, using the "Insert table" action from the toolbar automatically creates the proper structure for nested tables.

Best wishes,
Sorin Carbunaru
oXygen XML
chrupek
Posts: 3
Joined: Tue Mar 13, 2018 4:12 pm

Re: A sample table in a cell

Post by chrupek »

Hei Sorin,

thanks a lot for help!
Post Reply