Skip to content

Instantly share code, notes, and snippets.

@mkaatman
Created July 24, 2013 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkaatman/6070608 to your computer and use it in GitHub Desktop.
Save mkaatman/6070608 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_s25_kyh_zh">
<title>Broken CALS table</title>
<conbody>
<p>
<table id="table_3A860165B5A748A79B06028C4CE30C5A" >
<title>Broken Table</title>
<tgroup cols="12">
<colspec colnum="1" colname="col1" colwidth=".75in"/>
<colspec colnum="2" colname="col2" colwidth=".25in"/>
<colspec colnum="3" colname="col3" colwidth=".75in"/>
<colspec colnum="4" colname="col4" colwidth=".25in"/>
<colspec colnum="5" colname="col5" colwidth=".75in"/>
<colspec colnum="6" colname="col6" colwidth="0.25in"/>
<colspec colnum="7" colname="col7" colwidth=".75in"/>
<colspec colnum="8" colname="col8" colwidth=".25in"/>
<colspec colnum="9" colname="col9" colwidth=".75in"/>
<colspec colnum="10" colname="col10" colwidth=".25in"/>
<colspec colname="col011" colnum="11" colwidth=".75in"/>
<colspec colname="col11" colnum="12" colwidth=".25in"/>
<tbody>
<row>
<entry colname="col1">Test
</entry>
<entry colname="col02">1
</entry>
<entry colname="col2">Test
</entry>
<entry colname="col04">2
</entry>
<entry colname="col3">Test
</entry>
<entry colname="col06">3
</entry>
<entry colname="col4">Test
</entry>
<entry colname="col8">4
</entry>
<entry colname="col5">Test
</entry>
<entry colname="col10">5
</entry>
<entry colname="col6">Test
</entry>
<entry colname="col12">6
</entry>
</row>
</tbody>
</tgroup>
</table>
</p>
</conbody>
</concept>
@mkaatman
Copy link
Author

Removing all the colname attributes resolves the problem.

I was more surprised that this example failed. It seems that if the columns reference the colname, they have to be in the order defined in the colspec.

     <table id="table_3A860165B5A748A79B06028C4CE30C5A" > 
     <title>Broken Table</title> 
     <tgroup cols="12"> 

<colspec colnum="1" colname="col1" />
<colspec colnum="2" colname="col2" />
        <tbody> 
          <row> 
             <entry colname="col1">Test 
             </entry> 
             <entry colname="col2">1
             </entry> 
          </row>
         <row>
           <entry colname="col2">Test 
           </entry> 
           <entry colname="col1">1
           </entry> 
          </row> 
        </tbody> 
     </tgroup> 
     </table> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment