7 Replies Latest reply on Nov 22, 2015 7:22 AM by Jason C Hoyt

    Import CALS-Table as InDesign-Table - Bug? Please confirm!

    gunnars6678702

      Hi there,

       

      I'm facing wrong results using CALS-formatted files when importing them as InDesign tables.

      I use the command morerows="1" but in fact, it gets ignored.

       

      Here's the screenshot of my result:

      indesign_cals_table_problem.png

      This is the XML i use:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <root>
          <part description="myPart">
              <table frame="all">
                  <tgroup cols="16" colsep="1" rowsep="1">
                      <colspec colname="e1"/>
                      <colspec colname="e2"/>
                      <colspec colname="e3"/>
                      <colspec colname="e4"/>
                      <colspec colname="e5"/>
                      <colspec colname="e6"/>
                      <colspec colname="e7"/>
                      <colspec colname="e8"/>
                      <colspec colname="e9"/>
                      <colspec colname="e10"/>
                      <colspec colname="e11"/>
                      <colspec colname="e12"/>
                      <colspec colname="e13"/>
                      <colspec colname="e14"/>
                      <colspec colname="e15"/>
                      <colspec colname="e16"/>
                      <thead>
                          <row>
                              <entry align="center" morerows="1">H1</entry>
                              <entry namest="e2" nameend="e3" align="center">H2-3</entry>
                              <entry namest="e4" nameend="e5" align="center">H4-5</entry>
                              <entry namest="e6" nameend="e13" align="center">H6-13</entry>
                              <entry namest="e14" nameend="e15" align="center">H14-15</entry>
                              <entry align="center" morerows="1">H16</entry>
                          </row>
                          <row>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                              <entry align="center">-</entry>
                          </row>
                      </thead>
                      <tbody>
                          <row>
                              <entry namest="e1" nameend="e5"></entry>
                              <entry namest="e6" nameend="e7">2800</entry>
                              <entry namest="e8" nameend="e9">3000</entry>
                              <entry namest="e10" nameend="e11">3600</entry>
                              <entry namest="e12" nameend="e13">5000</entry>
                              <entry namest="e14" nameend="e16"></entry>
                          </row>
                          <row>
                              <entry morerows="1">XXX</entry>
                              <entry>2.136</entry>
                              <entry>1.955</entry>
                              <entry>0.0131</entry>
                              <entry>0.0176</entry>
                              <entry>37</entry>
                              <entry>49</entry>
                              <entry>39</entry>
                              <entry>53</entry>
                              <entry>47</entry>
                              <entry>63</entry>
                              <entry>55</entry>
                              <entry>73</entry>
                              <entry morerows="1">13</entry>
                              <entry morerows="1">29</entry>
                              <entry morerows="1">x</entry>
                          </row>
                          <row>
                              <entry>2.632</entry>
                              <entry>1.955</entry>
                              <entry>0.0111</entry>
                              <entry>0.0149</entry>
                              <entry>31</entry>
                              <entry>42</entry>
                              <entry>33</entry>
                              <entry>45</entry>
                              <entry>40</entry>
                              <entry>54</entry>
                              <entry>55</entry>
                              <entry>73</entry>
                          </row>
                      </tbody>
                  </tgroup>
              </table>
          </part>
      </root>
      

       

      I am using InDesign CC (newest version).

      What I've figured out so far is that this problem doesn't occur when I avoid using the commands namest and nameend (which allows colspans).

       

      Many thanks in advance for your help.

       

      Best Regards

      Gunnar