Srinivas S wrote:
We are trying to understand if it is possible to do the following when we convert a word document into DITA 1. The border style for table rows and cells from word to DITA.
No. DITA tables does not support border styles.
2. The alignment of text for content inside table cells from the word document to DITA
Yes. In principle, this should work out of the box (to a certain extent, of course, due to the content model of DITA tables).
See for example, attached "table1.docx" and converted result "table1.dita" (using w2x 1.10).
table1.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-US" id="d0e1"><title>Tests tables</title><prolog><author>Hussein Shafie</author><publisher>Pixware</publisher><critdates><created date="2013-05-18T14:24:00Z"/><revised modified="2013-05-25T13:34:00Z"/></critdates><data name="generator" value="XMLmind Word To XML Professional Edition 1.10.0"/></prolog><body><p><image href="table1_files/item.png" height="10" width="10" alt="???"/> Note that this document has no headings.</p><table><tgroup cols="2"><colspec colname="c1" colwidth="28*"/><colspec colname="c2" colwidth="72*"/><tbody valign="top"><row><entry morerows="2" align="center" valign="middle"><p>Paragraph alignment</p><p>(The cell is itself center, middle.)</p></entry><entry><p>Left aligned paragraph.</p></entry></row><row><entry align="center"><p>Centered paragraph.</p></entry></row><row><entry align="right"><p>Right aligned paragraph.</p></entry></row><row><entry><p>Paragraph.</p></entry><entry><p>Paragraph. (The cells of this row are left, top.)</p><p>Other paragraph.</p><p>Other paragraph.</p><p>Other paragraph.</p></entry></row><row><entry align="center"><p>Paragraph.</p></entry><entry><p>Paragraph. (The cells of this row are center, top.)</p><p>Other paragraph.</p><p>Other paragraph (left aligned).</p><p>Other paragraph.</p></entry></row><row><entry align="right"><p>Paragraph.</p></entry><entry><p>Paragraph. (The cells of this row are right, top.)</p><p>Other paragraph.</p><p>Other paragraph (left aligned).</p><p>Other paragraph.</p></entry></row><row><entry valign="middle"><p>Paragraph.</p></entry><entry valign="middle"><p>Paragraph. (The cells of this row are left, middle.)</p><p>Other paragraph.</p><p>Other paragraph (right aligned).</p><p>Other paragraph.</p></entry></row><row><entry align="center" valign="middle"><p>Paragraph.</p></entry><entry align="center" valign="middle"><p>Paragraph. (The cells of this row are center, middle.)</p><p>Other paragraph.</p><p>Other paragraph.</p><p>Other paragraph.</p></entry></row><row><entry align="right" valign="middle"><p>Paragraph.</p></entry><entry align="right" valign="middle"><p>Paragraph. (The cells of this row are right, middle.)</p><p>Other paragraph.</p><p>Other paragraph.</p><p>Other paragraph.</p></entry></row><row><entry valign="bottom"><p>Paragraph.</p></entry><entry valign="bottom"><p>Paragraph. (The cells of this row are left, bottom.)</p><p>Other paragraph.</p><p>Other paragraph.</p><p>Other paragraph.</p></entry></row><row><entry align="center" valign="bottom"><p>Paragraph.</p></entry><entry align="center" valign="bottom"><p>Paragraph. (The cells of this row are center, bottom.)</p><p>Other paragraph.</p><p>Other paragraph.</p><p>Other paragraph.</p></entry></row><row><entry align="right" valign="bottom"><p>Paragraph.</p></entry><entry align="right" valign="bottom"><p>Paragraph. (The cells of this row are right, bottom.)</p><p>Other paragraph.</p><p>Other paragraph.</p><p>Other paragraph.</p></entry></row></tbody></tgroup></table><p>Other table without any border (first cells are rotated):</p><table frame="none" rowsep="0" colsep="0"><tgroup cols="2"><colspec colname="c1" colwidth="50*"/><colspec colname="c2" colwidth="50*"/><tbody valign="top"><row><entry rotate="1"><p><b>Cell 1,1</b></p></entry><entry valign="bottom" rotate="1"><p><b>Cell 1,2</b></p></entry></row><row><entry><p>Cell 2,1</p></entry><entry><p>Cell 2,2</p></entry></row><row><entry><p>Cell 3,1</p></entry><entry><p>Cell 3,2</p></entry></row></tbody></tgroup></table><p>Other table with specific borders (inside a <i>rotated</i> section; cells are right/middle and center/middle):</p><table frame="none" rowsep="0" colsep="0"><tgroup cols="2"><colspec colname="c1" colwidth="50*"/><colspec colname="c2" colwidth="50*"/><tbody valign="top"><row><entry align="right" valign="middle"><p>Cell 1,1</p></entry><entry align="center" valign="middle"><p>Cell 1,2</p></entry></row><row><entry align="right" valign="middle"><p>Cell 2,1</p></entry><entry align="center" valign="middle"><p>Cell 2,2</p></entry></row><row><entry align="right" valign="middle"><p>Cell 3,1</p></entry><entry align="center" valign="middle"><p>Cell 3,2</p></entry></row></tbody></tgroup></table></body><topic id="d0e273"><title>Use portrait and landscape orientation in the same document</title><body><ol><li>Select the pages or paragraphs that you want to change to portrait or landscape orientation.<p><b> Note </b> If you select some but not all of the text on a page to change to portrait or landscape orientation, Word places the selected text on its own page, and the surrounding text on separate pages.</p></li><li>On the <b>Page Layout</b> tab, in the <b>Page Setup</b> group, click <b>Margins</b>.<image href="table1_files/image2.gif" height="85" width="253" alt="Word Ribbon image"/> </li><li>Click <b>Custom Margins</b>.</li><li>On the <b>Margins</b> tab, click <b>Portrait</b> or <b>Landscape</b>.</li><li>In the <b>Apply to</b> list, click <b>Selected text</b>.</li></ol><p><b> Note </b> Microsoft Word automatically inserts section breaks before and after the text that has the new page orientation. If your document is already divided into sections, you can click in a section (or select multiple sections), and then change the orientation for only the sections that you select.</p><p>Other table with a two header rows and thick borders:</p><table><tgroup cols="2"><colspec colname="c1" colwidth="50*"/><colspec colname="c2" colwidth="50*"/><thead valign="top"><row><entry align="center"><p><b>Header 1,1</b></p></entry><entry align="center"><p><b>Header 1,2</b></p></entry></row><row><entry align="center"><p><b>Header 2,1</b></p></entry><entry align="center"><p><b>Header 2,2</b></p></entry></row></thead><tbody valign="top"><row><entry><p>Cell 3,1</p></entry><entry><p>Cell 3,2</p></entry></row><row><entry><p>Cell 4,1</p></entry><entry><p>Cell 4,2</p></entry></row></tbody></tgroup></table><p>Table having merged cells (having adjusted column widths and also containing a sub-table):</p><table><tgroup cols="4"><colspec colname="c1" colwidth="11*"/><colspec colname="c2" colwidth="52*"/><colspec colname="c3" colwidth="19*"/><colspec colname="c4" colwidth="19*"/><tbody valign="top"><row><entry namest="c1" nameend="c2" align="center" valign="middle"><p>Cell 1,1 (merged columns; center, middle).</p></entry><entry><p>Cell 1,3</p></entry><entry><p>Cell 1,4</p></entry></row><row><entry><p>Cell 2,1</p></entry><entry morerows="1" align="center" valign="middle"><p>Cell 2,2 (merged rows; center, middle).</p></entry><entry><p>Cell 2,3</p></entry><entry><p>Cell 2,4</p></entry></row><row><entry><p>Cell 3,1</p></entry><entry namest="c3" nameend="c4" morerows="1" valign="middle"><p>Cell 3,3 (merged columns & rows; center, middle).</p><p>Contains a table having normally aligned cells (left, top):</p><p><table><tgroup cols="2"><colspec colname="c1" colwidth="44*"/><colspec colname="c2" colwidth="56*"/><tbody valign="top"><row><entry><p>Subcell 1,1</p></entry><entry><p>Subcell 1,2</p></entry></row><row><entry><p>Subcell 2,1</p></entry><entry><p>Subcell 2,2</p><p>With Word 2007, note that cell are by default <i>top</i> valigned. They cannot be <i>baseline</i> valigned.</p></entry></row></tbody></tgroup></table></p><ol><li>Item #1. Item #1. Item #1. Item #1. Item #1.</li><li>Item #2.<p>Continuation paragraph. Continuation paragraph. Continuation paragraph.</p></li><li>Item #3.</li></ol></entry></row><row><entry><p>Cell 4,1</p></entry><entry><p>Cell 4,2</p></entry></row></tbody></tgroup></table></body></topic></topic>
-- XMLmind Word To XML Support List [email protected] http://www.xmlmind.com/mailman/listinfo/w2x-support
