docbook-apps

  • 1.  Table Row Headers

    Posted 01-05-2012 08:39
    Dear all,

    In my customization layer I added the following statements to get row
    headers in *PDF* output:

    <xsl:template match="entry|entrytbl" name="entry">
    ...
    <xsl:otherwise>
    <xsl:variable name="cell.content">
    <fo:block>
    <xsl:if test="ancestor::thead or @role='tablehead'">
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    </xsl:if>
    ...
    </fo:block>
    ...
    </xsl:variable>
    ...
    </xsl:otherwise>
    ...
    <xsl:template>

    It works and I get the expected result... but I've figured out that for
    *HTML* output it is just enough to set the table's "rowheader" property
    to "firscol" to get row headers.

    I'd like to get row headers in *PDF* output the same way... i.e. without
    setting the entry's "role" prolerty to "tablehead". Is that possible?

    Thanks,
    j3d
    --

    *Giuseppe Greco*
    Founder

    *Agamura, Inc.
    *6900 Lugano - Switzerland
    Phone +41 (0)91 234 51 09 ? Mobile +41 (0)79 590 33 06 ? Skype
    giuseppe.greco
    giuseppe.greco@agamura.com <mailto:giuseppe.greco@b-source.ch> -
    www.agamura.com