1 Reply Latest reply: Dec 18, 2009 11:30 AM by TurtleCruiser RSS

    XML Tables without aid:trows

    chapmanga

      I am trying to import XML that has been laid out as tables that Indesign should read however each import will have different number of rows in the tables. I was therfore hoping to avoid using the aid:trows attribute, which I belived to be optional, however whenever I import the following I get this warning

       

       

      Picture 1.png

       

      <Table xmlns:aid="http://ns.adobe.co
      
      m/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:tcols="3" aid5:tablestyle="Street_Table">
      <Cell aid:table="cell" aid:crows="1" aid:ccols="3" aid:ccolwidth="93.827" aid:pstyle="Alpha_Headers" aid5:cellstyle="Alpha_Cell"><AlphaHeaders>A</AlphaHeaders></Cell>
      <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="74.823" aid:pstyle="Street_Index" aid5:cellstyle="StreetName_Cell"><StreetNames><Runner>Aar</Runner>on Hill Rd  </StreetNames><StreetArea>EHAM</StreetArea><StreetPostcode>&#160;E6     ..</StreetPostcode></Cell>
      <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="8.504" aid:pstyle="Page_Numbers" aid5:cellstyle="PageNo_Cell">96</Cell>
      <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="10.5" aid:pstyle="Grid_Numbers" aid5:cellstyle="GridRef_Cell">A4</Cell>
      </Table>
      

       

      Is there anyway to get around stating the number of rows in the XML?

        • 1. Re: XML Tables without aid:trows
          TurtleCruiser

          I believe the trows and tcols attributes are required. InDesign uses the dimensions to create the table, and then tries to fill it using the subsequent cell elements.

           

          If you have an existing tagged skeleton table that InDesign can flow/merge the XML import into instead, you may be able to get away with not specifying the table size. For example, a 1x3 empty table that's tagged, which, after import, it may become 1x3, 2x3, or 3x3, and so on.