Next in thread → Next in month →

Re: [docbook-apps] Table Row Headers

From
Giuseppe Greco <>
Date
2012-01-05T21:00:32+00:00
ID
Thread
Re: [docbook-apps] Table Row Headers
Hi Bob,

    

    You are right :-) I had an old customization layer where I
    implemented my row headers. After having removed this customization
    everything worked.

    

    Sorry and thank you very much for your valuable support!

    j3d

    

    On 1/5/2012 6:56 PM, Bob Stayton wrote:
    Hi,
      

      I just tested it with the 1.76.1 version of the stylesheets, and
      it worked for me. Are you sure you are using that version?
      

      

      In fo/table.xsl, there is a template named
      'table.cell.block.properties' that tests for 'firstcol' and sets
      bold for the first column if present.  If you have overwritten
      that template, then it may not work for you.
      

      

      Bob Stayton
      

      Sagehill Enterprises
      

      
      

      

      

      ----- Original Message ----- From: "Giuseppe Greco"
      <>
      

      To: "Bob Stayton" <>
      

      Cc: <>
      

      Sent: Thursday, January 05, 2012 9:40 AM
      

      Subject: Re: [docbook-apps] Table Row Headers
      

      

      

      But for PDF output it does not
        automatically set the first column in bold... while for HTML out
        it does.
        

        j3d
        

        

        On 1/5/2012 5:52 PM, Bob Stayton wrote:
        

        Hi,
          

          Yes, support for the table attribute rowheader="firstcol" was
          added to version 1.76.1 of the stylesheets for PDF output.
          

          

          Bob Stayton
          

          Sagehill Enterprises
          

          
          

          

          

          ----- Original Message ----- From: "Giuseppe Greco"
          <>
          

          To: <>
          

          Sent: Thursday, January 05, 2012 12:38 AM
          

          Subject: [docbook-apps] Table Row Headers
          

          

          

          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
            

            
            <mailto:> - www.agamura.com
            

            

            

---------------------------------------------------------------------
            

            To unsubscribe, e-mail:
            
            

            For additional commands, e-mail:
            
            

            

            

            

          
        
        

        

      
      

    
    

    

    
-- 

      
      
      
          
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

                
                - www.agamura.com
Next in thread → Next in month →