docbook-apps

  • 1.  Re: [docbook-apps] Table Header Column Formatting

    Posted 03-30-2009 03:15
    Hi,
    I presume you are asking about printed output, not HTML output.
    There is a named template that handles the format properties on each table cell, and another to apply format properties to the fo:block inside each cell. These are described in these two sections of my book:

    http://www.sagehill.net/docbookxsl/PrintTableStyles.html#table.cell.properties

    http://www.sagehill.net/docbookxsl/PrintTableStyles.html#table.cell.block.properties

    You could customize these using additional xpath selectors. The existing template uses "ancestor::thead" to test for table header cells. You could use "count(preceding-sibling::entry) = 0" to detect first cells in each row.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] Table Header Column Formatting

    Posted 04-05-2009 06:10
    Correct, I am looking at print output.
    I was hoping to be able to do column specific formatting based on defining a
    role in the colspec. This does not seem possible, correct?

    As an alternative, I have been trying to put a role on 'entry', but have not
    been successful. How do I change table.cell.properties based on an attribute
    of an ancestor?

    Regards,

    Marcel
    --


    On Sun, Mar 29, 2009 at 8:14 PM, Bob Stayton <bobs@sagehill.net> wrote:

    > Hi,
    > I presume you are asking about printed output, not HTML output.
    > There is a named template that handles the format properties on each table
    > cell, and another to apply format properties to the fo:block inside each
    > cell. These are described in these two sections of my book:
    >
    >
    > http://www.sagehill.net/docbookxsl/PrintTableStyles.html#table.cell.properties
    >
    >
    > http://www.sagehill.net/docbookxsl/PrintTableStyles.html#table.cell.block.properties
    >
    > You could customize these using additional xpath selectors. The existing
    > template uses "ancestor::thead" to test for table header cells. You could
    > use "count(preceding-sibling::entry) = 0" to detect first cells in each row.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    >
    >
    >