docbook-apps

  • 1.  Re: [docbook-apps] striped table border colors

    Posted 03-01-2012 06:55
    Hi Gregorio,
    Borders within a table are set on table cells, not on rows. I believe the reason for that must be cell spans, which can put the bottom of a cell in one row in the next row or several rows.

    Customize the template 'table.cell.properties' from fo/table.xsl to set the custom borders.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] striped table border colors

    Posted 06-04-2012 20:11


    I realize it has been several months since I broached this subject. As this was a back-burner issue I have only recently revisited this. However, I have not been able to generate the results I had hoped for yet.

    I am trying to customize the fo/table.xsl to address the cell.border.color as is the subject here.


    My first question is that there seem to be two areas that refer to table.cell.properties, I am assuming the one I want is the 2nd one following the comment.


    OK, now from the comment, and some dabbling, should I assume the right approach is to add that structure to my custom layer... or do I want to modify the table.xsl straight away?


    The second and biggest problem I am having is that I am not sure what the right 'call' to get the column separators other than black.
    My first attempt as illustrated in my first letter:
    <xsl:attribute name="border-right">0.5pt white</xsl:attribute> <xsl:attribute name="border-left">0.5pt white</xsl:attribute>
    did not work, but seems like it might be going down the right road.


    I have tried something along these lines:

    <xsl:call-template name="border">
    <xsl:with-param name="table.cell.border.color" select="'white'"/>
    </xsl:call-template>



    Not to throw more confusion at this with bad code, than necessary. What would be the correct structure to get the the column rules to turn white?
    I wonder if you might be able to supply some example of the code to do that?


    I hope that is not too much to ask, but it would really help as I have run into a wall here.


    Thank you kindly!


    /G.