0 Replies Latest reply on Jul 21, 2009 1:52 AM by franzi_ska

    [CS4/JS] Import CALS-Tables with merged cells

    franzi_ska

      Hello scripters.


      I am actually trying to import CALS-tables (which is in my imported XML) into InDesign.

      I used the convertElementToTable for this.

      That worked, except for the merged cells (only cells which are merged to two or three columns).

      How could I script the automatic generation for merged cells?


      My xml-cals-table looks the following:

       

      <example> 
          <table class="n" width="600" border="0"> 
              <colgroup> 
                  <col width="35%"/> 
                  <col width="30%"/> 
                  <col width="35%"/> 
              </colgroup> 
              <tr> 
                  <td colspan="3"> 
                      <ta>content content content content content content content content</ta> 
                  </td> 
              </tr> 
              <tr> 
                  <td align="left" valign="top"> 
                      <ta>content content content content </ta> 
                  </td> 
                  <td align="left" valign="top"> 
                      <ta>content content </ta> 
                  </td> 
                  <td align="right" valign="top"> 
                      <ta>content content </ta> 
                  </td> 
              </tr> 
              <tr> 
                  <td align="left" valign="top"> 
                      <ta>content content </ta> 
                  </td> 
                  <td align="left" valign="bottom"> 
                      <ta>content content </ta> 
                  </td> 
                  <td align="right" valign="bottom"> 
                      <ta>content content </ta> 
                  </td> 
              </tr> 
          </table> 
      </example> 

      Thanks in advance for any help!


      Franziska