docbook-apps

striped table border colors

  • 1.  striped table border colors

    Posted 02-29-2012 22:06
    Hello:

    I have a particular style of table I am attempting to generate into PDF using the fo stylesheets.
    Specifically I am getting custom striped rows, but I also need to generate white rowsep/colsep or cell borders. I am trying to do this in my custom layer, and here is a piece of the xsl:




    <xsl:template name="table.row.properties">
    <xsl:variable name="tabstyle">
    <xsl:call-template name="tabstyle"/>
    </xsl:variable>
    <xsl:variable name="rownum">
    <xsl:number from="tgroup" count="row"/>
    </xsl:variable>
    <xsl:choose>
    <xsl:when test="$tabstyle = 'striped'">
    <xsl:if test="$rownum mod 2 = 0">
    <xsl:attribute name="background-color">#939598</xsl:attribute>


    <xsl:attribute name="border-right">0.5pt white</xsl:attribute>
    <xsl:attribute name="border-left">0.5pt white</xsl:attribute>

    </xsl:if>
    <xsl:if test="$rownum mod 2 != 0">
    <xsl:attribute name="background-color">#bcbec0</xsl:attribute>

    </xsl:if>
    </xsl:when>
    </xsl:choose>
    </xsl:template>







    Obviously this is not working, the portions following are simply variations of my attempts to get some sort of change to the table.cell.properties,
    however I could not find any sort of combination to get the result I wish for, which would be white colored rules between the cells of the table.


    Is this even possible? Any suggestions?


    Thank you for taking the time to read my questions.
    /Gregorio