4 Replies Latest reply on May 1, 2015 9:40 AM by brown1982

    Has anyone faced issue with imported XML table going out of frame?

    XML table

      Hi,

       

         I have a table in InDesign compliant XML which is generated(mapped)  from html table. I am trying to import this XMLtable  in InDesign. This table has columspan in each cell.

      After I import it in InDesign the table is going out of the frame. If I regenerate XML from the imported XML in InDesign, I can see the

      columwidths are gone for the cells which have columnspan > 1.  Is there any limitation in InDesign for loading such tables ?

       

      Here is the view of the html table. Table entry for each cell shows the columnspan for that cell. Width of each column is 15pt, for colspan 2, it will be 30pt and so on

       

      Any help in this regard would be really helpful.

       

      Regards

      - Debajit

      Capture.PNG

      Following is a sample of html :

      ----------------------------------------------

      <table align="left" border="1" cellpadding="0" cellspacing="0" style="width: 615pt">

              <tbody>

                      <tr style="height: 16px">

                              <td style="width: 15pt; height: 16px">1</td>

                              <td colspan="3" style="width: 45pt; height: 16px">3</td>

                              <td colspan="3" style="width: 45pt; height: 16px">3</td>

                              <td colspan="9" style="width: 135pt;"> <p>9</p> </td>

                      </tr>

                      <tr style="height: 16px">

                              <td colspan="3" style="width: 45pt; height: 16px">3</td>

                              <td colspan="3" style="width: 45pt; height: 16px">3</td>

                              <td colspan="3" style="width: 45pt; height: 16px">3</td>

                              <td colspan="2" style="width: 30pt; height: 16px">2</td>

                              <td colspan="2" style="width: 30pt; height: 16px">2</td>

                              <td colspan="3" style="width: 45pt;"> <p>3</p> </td>

                      </tr>

                 </tbody>

      </table>

       

      Following is the corresponding XML for InDesign Import.  After importing the table goes out of frame

      ------------------------------------------------------------------------------------------ ----------------------------------------------------------

      <root>

      <Table aid:table="table" aid:tcols="16" aid:trows="2" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/">

          <Cell aid:ccols="1" aid:ccolwidth="15.0" aid:crows="1" aid:table="cell"><TableHeader>1</TableHeader></Cell>

          <Cell aid:ccols="3" aid:ccolwidth="45.0" aid:crows="1" aid:table="cell"><TableHeader>3</TableHeader></Cell>

          <Cell aid:ccols="3" aid:ccolwidth="45.0" aid:crows="1" aid:table="cell"><TableHeader>3</TableHeader></Cell>

          <Cell aid:ccols="9" aid:ccolwidth="135.0" aid:crows="1" aid:table="cell"><TableHeader>9 </TableHeader></Cell>

       

       

          <Cell aid:ccols="3" aid:ccolwidth="45.0" aid:crows="1" aid:table="cell"><TableText>3</TableText></Cell>

          <Cell aid:ccols="3" aid:ccolwidth="45.0" aid:crows="1" aid:table="cell"><TableText>3</TableText></Cell>

          <Cell aid:ccols="3" aid:ccolwidth="45.0" aid:crows="1" aid:table="cell"><TableText>3</TableText></Cell>

          <Cell aid:ccols="2" aid:ccolwidth="30.0" aid:crows="1" aid:table="cell"><TableText>2</TableText></Cell>

          <Cell aid:ccols="2" aid:ccolwidth="30.0" aid:crows="1" aid:table="cell"><TableText>2</TableText></Cell>

          <Cell aid:ccols="3" aid:ccolwidth="45.0" aid:crows="1" aid:table="cell"><TableText>3</TableText></Cell>

      </Table>

      </root>

       

       

      Following is the XML exported from InDesign, here I see the columnwidth, the number of table columns got changed.

      ------------------------------------------------------------------------------------------ ---------------------------------------------------------------------------------------

      <root>


      <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="2" aid:tcols="9">

          <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="15"><TableHeader>1</TableHeader></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="2"><TableHeader>3</TableHeader></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="2"><TableHeader>3</TableHeader></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="4"><TableHeader>9 </TableHeader></Cell>

       

       

          <Cell aid:table="cell" aid:crows="1" aid:ccols="2"><TableText>3</TableText></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="2"><TableText>3</TableText></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="2"><TableText>3</TableText></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80"><TableText>2</TableText></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80"><TableText>2</TableText></Cell>

          <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="120"><TableText>3</TableText></Cell>

      </Table>