Thank you for your detailed analysis of the tables in my word file. About the outer border: I might go for an xslt workaround of the following type: As soon as there table cells in the table with border-style:none, I assume that it is a „complex, image like table“ and add class=’no_outer’ on the table tag and set the css for table.no_outer to border-style:none. Should work in most cases.
About preserving empty tags: Looking forward to this enhancement. So I know that in the foreseeable the authors do not have to add the question mark any more by hand. Am 24.07.16, 13:11 schrieb "Hussein Shafie" <[email protected]>: 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" <[email protected]>: > > 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 [email protected] http://www.xmlmind.com/mailman/listinfo/w2x-support
