I have looked at the DOCX files you sent us. I'll now try to answer your
questions:
- If I convert the Word document in the attachment to a xhtml document, the 4
tables end up with a border on the table element. The original 4 tables have no
outer border.
Well, the DOCX specifies that the table has an outer border:
---
<w:tbl>
<w:tblPr>
<w:tblW w:type="dxa" w:w="9880"/>
<w:tblBorders>
<w:top w:color="auto" w:space="0" w:sz="4" w:val="single"/>
<w:left w:color="auto" w:space="0" w:sz="4" w:val="single"/>
<w:bottom w:color="auto" w:space="0" w:sz="4" w:val="single"/>
<w:right w:color="auto" w:space="0" w:sz="4" w:val="single"/>
<w:insideH w:color="auto" w:space="0" w:sz="4" w:val="single"/>
<w:insideV w:color="auto" w:space="0" w:sz="4" w:val="single"/>
</w:tblBorders>
<w:tblLayout w:type="fixed"/>
<w:tblLook w:firstColumn="1" w:firstRow="1" w:lastColumn="1"
w:lastRow="1" w:noHBand="0" w:noVBand="0" w:val="01E0"/>
</w:tblPr>
<w:tblGrid>
...
---
w2x is currently not smart enough no determine that, given the borders
specified individually on each table cell, the outer border of the table
should not be displayed.
We'll not attempt to improve this as this seems to be much too
complicated. Sorry for that.
- We format *empty* table cells and *empty* paragraphs with special paragraph
formats (TABGAPlef, TABGAPrig, TABGAPcen and QUELIN) as we want to convert them
input or textarea tags. The problem is that empty cells do not get a paragraph
tag and empty paragraphs. So currently we have to place a questionmark together
with the special format. My question: Is there another way to get the wanted
result?
This problem cannot be easily solved using w2x v1.1.
We have added new parameter edit.remove-styles.preserved-classes to w2x
v1.2 (to be released in at most 2 weeks).
Using new w2x v1.2, passing the following parameters should allow to
preserve in the semantic XHTML output empty paragraphs having any of the
TABGAPlef, TABGAPrig, TABGAPcen, QUELIN styles:
-p edit.prune.preserve "p-TABGAPlef p-TABGAPrig p-TABGAPcen p-QUELIN"
-p edit.remove-styles.preserved-classes "p-TABGAPlef p-TABGAPrig
p-TABGAPcen p-QUELIN"
On 07/22/2016 05:02 PM, Thomas Dumm wrote:
I target semantic xhtml. Please find the document without ? in the attachment.
Am 22.07.16, 16:56 schrieb "Hussein Shafie" <huss...@xmlmind.com>:
On 07/22/2016 03:02 PM, Thomas Dumm wrote:
>
> I have 2 questions concerning tables:
>
> - If I convert the Word document in the attachment to a xhtml document,
the 4 tables end up with a border on the table element. The original 4 tables have
no outer border.
> - We format *empty* table cells and *empty* paragraphs with special
paragraph formats (TABGAPlef, TABGAPrig, TABGAPcen and QUELIN) as we want to
convert them input or textarea tags. The problem is that empty cells do not get a
paragraph tag and empty paragraphs. So currently we have to place a questionmark
together with the special format. My question: Is there another way to get the
wanted result?
>
Please specify which format do you target. Is it styled XHTML or is
semantic XHTML?
Please send me another DOCX sample similar to the one attached to your
email but without any "?" added into the table cells to workaround issue
#2.
--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support