dita

how to remove table border line in dita?


I got a question related to dita. It's a sample for dita below that i searched on web.

<body>
    <table frame="topbot">
        <tgroup cols="2">
            <colspec colname="COLSPEC0" colwidth="121*" />
            <colspec colname="COLSPEC1" colwidth="76*" />
            <thead>
                <row>
                    <entry colname="COLSPEC0" valign="top">Animal</entry>
                    <entry colname="COLSPEC1" valign="top">Gestation</entry>
                </row>
            </thead>
            <tbody>
                <row>
                    <entry>Elephant (African and Asian)</entry>
                    <entry>19-22 months</entry>
                </row>
                <row>
                    <entry>Giraffe</entry>
                    <entry>15 months</entry>
                </row>
                <row>
                    <entry>Rhinoceros</entry>
                    <entry>14-16 months</entry>
                </row>
                <row>
                    <entry>Hippopotamus</entry>
                    <entry>7 1/2 months</entry>
                </row>
            </tbody>
        </tgroup>
    </table>
</body>

I looked forward to see table that has no border line since there was attribute frame="topbot". as far as i know, the attribute removes all border line on table except only top and bottom line. but result has all border lines.

So, which part is wrong ? why does frame="topbot" attribute not work ?

Thanks


Solution

  • I resolved this problem.

    It needs colsep="0" rowsep="0" attribute as below.

    <body>
        <table frame="topbot">
            <tgroup cols="2" colsep="0" rowsep="0">
                <colspec colnum="1" colname="1" colwidth="61*"/>
                <colspec colnum="2" colname="2" colwidth="39*"/>
                <thead>
                    <row rowsep="0">
                        <entry colname="1">Animal</entry>
                        <entry colname="2">Gestation</entry>
                    </row>
                </thead>
                <tbody>
                    <row rowsep="0">
                        <entry colname="1">Elephant (African and Asian)</entry>
                        <entry colname="2">19-22 months</entry>
                    </row>
                    <row rowsep="0">
                        <entry colname="1">Giraffe</entry>
                        <entry colname="2">15 months</entry>
                    </row>
                    <row rowsep="0">
                        <entry colname="1">Rhinoceros</entry>
                        <entry colname="2">14-16 months</entry>
                    </row>
                    <row rowsep="0">
                        <entry colname="1">Hippopotamus</entry>
                        <entry colname="2">7 1/2 months</entry>
                    </row>
                </tbody>
            </tgroup>
        </table>
    </body>