On 09/04/2019 04:35 PM, Lekan Owodunni wrote:
On converting the attached docx to dita we noticed that the tables with
the merged cells appear broken.



w2x-support@xmlmind.com wrote:
This is indeed a bug, which we will fix in the next release of XMLmind Word To 
XML (probably not before November 2019).



We are currently working on the next version of XMLmind Word To XML. Therefore, this morning, we started fixing this bug.

To our surprise, we did not manage to reproduce it.

After converting your testDoc.docx (as is; no modifications whatsoever; attached to this email) to a DITA topic, the merged cells, even when most are empty, look just fine in XMLmind XML Editor (see testDoc.dita attachment and screenshot).

So our guess is that there is NO W2X BUG HERE. Simply the XML editor you use does not support the (fully standard, pretty straightforward) <colspec> elements generated by w2x.

This guess seems to be confirmed by your subsequent support request:

Damian Cannon wrote:
If I import the attached document and output a ditamap there are a few things 
that I'd like to see in the xml output:

1) It would be useful if each <entry> had a colname attribute which matchesd the colname in 
the <colspec> element. With merged cells the namest and nameend attributes are set so the 
column names must be known when an <entry> is created.

2) For consistency with our editor it would be great if the colname attributes 
where set as colA, colB, colC etc rather than c1, c2, c3 etc (with these being 
used on the namest and nameend attributes as well)

3) For a similar reason we would like to have the colnum attribute set on the 
<colspec> elements as well with this being a simple number sequence (1,2,3 etc)

4) Finally do you know why the colwidth attributes are named as, say, "20*" rather than 
"20%"? Again it would be useful for these to be set as a percentage value when converted


Attachment: testDoc.docx
Description: MS-Word 2007 document

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic xml:lang="en-GB" id="d0e1"><title>???</title><prolog><author>Christian Booth</author><publisher>ScribeStar Ltd</publisher><critdates><created date="2019-09-04T09:59:00Z"/><revised modified="2019-09-04T10:01:00Z"/></critdates><data name="generator" value="XMLmind Word To XML Professional Edition 1.8.0"/></prolog><body><p/></body><topic id="d0e11"><title>INTRO CHAPTER</title><body><p>This is my document</p></body></topic><topic id="d0e16"><title>TABLE OF CONTENTS</title><body><p>ANOTHER CHAPTER</p><p>This is another part with tables </p><p>Table1</p><table><tgroup cols="6"><colspec colname="c1" colwidth="16*"/><colspec colname="c2" colwidth="26*"/><colspec colname="c3" colwidth="13*"/><colspec colname="c4" colwidth="15*"/><colspec colname="c5" colwidth="16*"/><colspec colname="c6" colwidth="13*"/><tbody valign="top"><row><entry><p>cell content</p></entry><entry/><entry namest="c3" nameend="c4"/><entry/><entry/></row><row><entry/><entry/><entry/><entry><p>Cell</p></entry><entry><p>content</p></entry><entry/></row><row><entry/><entry/><entry/><entry/><entry/><entry/></row><row><entry/><entry/><entry/><entry/><entry><p>cell content</p></entry><entry/></row></tbody></tgroup></table><p>Table2</p><table><tgroup cols="5"><colspec colname="c1" colwidth="20*"/><colspec colname="c2" colwidth="20*"/><colspec colname="c3" colwidth="20*"/><colspec colname="c4" colwidth="20*"/><colspec colname="c5" colwidth="20*"/><tbody valign="top"><row><entry><p>cell content</p></entry><entry/><entry/><entry/><entry/></row><row><entry/><entry/><entry namest="c3" nameend="c4"><p>Cell</p><p>content</p></entry><entry/></row><row><entry/><entry/><entry/><entry/><entry/></row><row><entry/><entry/><entry/><entry><p>cell content</p></entry><entry/></row></tbody></tgroup></table><p>Table3</p><table><tgroup cols="7"><colspec colname="c1" colwidth="20*"/><colspec colname="c2" colwidth="20*"/><colspec colname="c3" colwidth="13*"/><colspec colname="c4" colwidth="7*"/><colspec colname="c5" colwidth="7*"/><colspec colname="c6" colwidth="13*"/><colspec colname="c7" colwidth="20*"/><tbody valign="top"><row><entry morerows="3"><p>Merged cell content</p></entry><entry/><entry namest="c3" nameend="c4"/><entry namest="c5" nameend="c6"/><entry/></row><row><entry/><entry><p>Merged cel content</p></entry><entry namest="c4" nameend="c5"/><entry/><entry/></row><row><entry/><entry namest="c3" nameend="c4"/><entry namest="c5" nameend="c6"/><entry/></row><row><entry/><entry namest="c3" nameend="c4"/><entry namest="c5" nameend="c7"><p>Merged cell content</p></entry></row></tbody></tgroup></table></body></topic></topic>
--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
https://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to