Page 1 of 1

Table not showing correctly in Author mode in v.19

Posted: Thu Nov 09, 2017 7:05 pm
by psbentley
Hello,

I'm using Oxygen Author 19 (just upgraded to 19.1 today to see if this is corrected--it's not) and I'm noticing some strange behavior with tables.

I have this as a table:

Code: Select all

<table frame="all" colsep="1" rowsep="1">
<tgroup cols="2">
<colspec colnum="1" colname="col1"/>
<colspec colnum="2" colname="col2"/>

<thead><row>
<entry/>
<entry align="center">¥ billions</entry>
</row></thead>
<tbody><row>
<entry>Net income from continuing operations</entry>
<entry align="center">503</entry>
</row>
<row>
<entry>Depreciation & amortization</entry>
<entry align="center">256</entry>
</row>
<row>
<entry>Capital expenditures</entry>
<entry align="center">140</entry>
</row>
<row>
<entry>Cash flow from operations</entry>
<entry align="center">361</entry>
</row>
<row>
<entry>Dividends</entry>
<entry align="center">72</entry>
</row>
</tbody>
</tgroup>
</table>
which is valid, but when I open it in Author mode it looks very odd and incorrect based upon what it looked like in Oxygen 17.

I'm also getting errors:
Description: [Author layout]:Cannot create a table. A table element cannot contain children other than elements and comments.
Description: [Author layout]:Cannot create a table. A table row group cannot be created from element 'thead'.
Description: [Author layout]:Cannot create a table. A table row group cannot be created from element 'tbody'.

Any ideas about what's going on?

Thanks!

Re: Table not showing correctly in Author mode in v.19

Posted: Fri Nov 10, 2017 1:33 pm
by Radu
Hi Peyton,

I cannot reproduce this problem on my side. You are using the DITA vocabulary, right?
Did you have your own DITA framework customization in Oxygen 17? Maybe a custom DITA Open Toolkit engine which had a specialization plugin installed?
Did you also try to use it with the Oxygen 19.0? Can I get a screenshot of how the application looks like on your side when opening the topic? You can contact us directly using support@oxygenxml.com.

Regards,
Radu

Re: Table not showing correctly in Author mode in v.19

Posted: Fri Nov 10, 2017 10:31 pm
by psbentley
Hi Radu,

We are using DITA. We've got our own specializations but nothing to do with tables. I just opened a new OOTB DITA file and pasted my table in and it worked, but then I added a <p> around the table and that triggered the problem. Can you give that a try to see if you can recreate the issue?

Thanks!

Re: Table not showing correctly in Author mode in v.19

Posted: Mon Nov 13, 2017 11:09 am
by Radu
Hi,

I tested with the following DITA topic:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_lb4_2db_wbb">
<title>Test</title>
<body>
<p><table frame="all" colsep="1" rowsep="1">
<tgroup cols="2">
<colspec colnum="1" colname="col1"/>
<colspec colnum="2" colname="col2"/>

<thead><row>
<entry/>
<entry align="center">¥ billions</entry>
</row></thead>
<tbody><row>
<entry>Net income from continuing operations</entry>
<entry align="center">503</entry>
</row>
<row>
<entry>Depreciation & amortization</entry>
<entry align="center">256</entry>
</row>
<row>
<entry>Capital expenditures</entry>
<entry align="center">140</entry>
</row>
<row>
<entry>Cash flow from operations</entry>
<entry align="center">361</entry>
</row>
<row>
<entry>Dividends</entry>
<entry align="center">72</entry>
</row>
</tbody>
</tgroup>
</table></p>
</body>
</topic>
and opening it in the Author visual editing mode with Oxygen 19.1 works, the table is properly shown, without any extra errors displayed.
Does the same topic content work for you? If not, then probably your custom DITA framework customization broke some of the DITA editing support, it was probably compatible with an older version of Oxygen but it may not work with this newer Oxygen version.
You can try to disable your customization and see if this is the case.
If that is the case, in order to help you further we would need to have your entire framework customization to test and reproduce the situation on our side (you can use our "support@oxygenxml.com" email address).

Regards,
Radu

Re: Table not showing correctly in Author mode in v.19

Posted: Mon Nov 13, 2017 5:14 pm
by psbentley
Thanks, Radu, I appreciate your help.

I changed the location of my DITA frameworks to the local 1.8 version in Options, but I'm still getting the error. I emailed the support email you gave me.

Thanks again!

Re: Table not showing correctly in Author mode in v.19

Posted: Tue Nov 14, 2017 4:21 pm
by Radu
Hi,

Just to update this post, in the Oxygen Preferences->Editor / Format / XML page Payton had the DITA <p> element set as space preserve.
I suggested instead to use the Preferences->Editor / Edit Modes / Author -> Compatibility with other tools settings.

Regards,
Radu