docbook-apps

  • 1.  Table frame partly disappears for cells with morerows=1

    Posted 11-23-2013 11:35
    I'm trying to generate a table where each cell has full borders. This works OK until
    I try generate a header cell spanning two rows with <entry morerows="1">, in which case
    no border seems to be generated at the bottom of the cell. The cell borders are being
    defined by setting table.frame.border.thickness and table.cell.border.thickness each
    to 2px in the stylesheet customization, and default.table.frame to "all". Liberal
    use of rowsep="1" in the table <entry> elements seems to make no difference. Am I
    missing something here or is there possibly a bug in the stylesheets?

    Interestingly a body cell with morerows=1 does generate the bottom border, this
    only seems to happen for head cells.

    This is using XSL-NS 1.78.1 and generating output index.xhtml via

    xsltproc --noout --nonet --xinclude test.xsl test.xml

    Minimal case attached including rendered results.

    Thanks,
    Jon

    </entry></entry>

    Attachment(s)

    pdf
    test.pdf   19 KB 1 version
    xml
    test.xml   1 KB 1 version


  • 2.  Re: [docbook-apps] Table frame partly disappears for cells with morerows=1

    Posted 11-24-2013 05:27
    Hi Jon,
    It is indeed a bug in the stylesheet. The rowsep is supposed to be
    ignored for the last row in a table because the table border generates
    that bottom border. The logic has to take into account @morerows when
    determining the last row. But it did not do that correctly when the row
    was in thead. I'll see if I can figure out how to fix it and let you know.

    --
    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    On 11/23/2013 3:34 AM, Jon Leech wrote:
    > <refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="abs">
    > <refmeta>
    > <refentrytitle>abs</refentrytitle>
    > </refmeta>
    > <refsect1>
    > <informaltable>
    > <tgroup cols="3">
    > <colspec/>
    > <colspec/>
    > <colspec/>
    >
    > <row>
    > <entry morerows="1"> head,cell(morerows=1) </entry>
    > <entry>head,cell</entry>
    > <entry morerows="1"> head,cell(morerows=1)</entry>
    > </row>
    > <row>
    >
    > <entry>head,cell</entry>
    > </row>
    >
    >
    > <row>
    > <entry morerows="1">cell(morerows=1)</entry>
    > <entry morerows="1">cell(morerows=1)</entry>
    > <entry>cell</entry>
    > </row>
    > <row>
    >
    > <entry>cell</entry>
    > </row>
    > <row>
    > <entry>cell</entry>
    > <entry>cell</entry>
    > <entry>cell</entry>
    > </row>
    >
    > </tgroup>
    > </informaltable>
    > </refsect1>
    > </refentry>




  • 3.  Re: [docbook-apps] Table frame partly disappears for cells with morerows=1

    Posted 11-25-2013 02:01
    Hi Jon,
    I checked in a fix for this bug and the latest stylesheet snapshot has
    the fixed version:

    http://snapshots.docbook.org/

    The template that changed was in table.xsl, starting with:

    <xsl:template match="d:entry|d:entrytbl" name="entry">

    --
    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 11/23/2013 9:27 PM, Bob Stayton wrote:
    > Hi Jon,
    > It is indeed a bug in the stylesheet. The rowsep is supposed to be
    > ignored for the last row in a table because the table border generates
    > that bottom border. The logic has to take into account @morerows when
    > determining the last row. But it did not do that correctly when the row
    > was in thead. I'll see if I can figure out how to fix it and let you know.
    >