Hi Craig,

Thanks for the code and the link to D. Pawson's page! We'll give it a try and will keep this forum updated if it works (or not) for us.

Cheers,

Stefan

On 27.06.2012 00:47, Craig Christophersen wrote:
There is a way to accomplish this currently using retrieve-markers.
In fo:page-sequence element
                <fo:static-content flow-name="xsl-region-before">
                                        <fo:table table-layout="fixed" width="100%" 
border-bottom-style="solid" height="18mm">
                                                <fo:table-column 
column-width="70mm"/>
                                                <fo:table-column 
column-width="118mm"/>
                                                <fo:table-body>
                                                        <fo:table-row 
height="6mm">
                                                                <fo:table-cell>
                                                                        <fo:block font-size="11pt" 
text-align="left" font-weight="bold">
                                                                        
                                                                        
</fo:block>
                                                                </fo:table-cell>
                                                                <fo:table-cell>
                                                                        
                                                                </fo:table-cell>
                                                        </fo:table-row>
                                                        <fo:table-row 
height="6mm">
                                                                <fo:table-cell 
number-columns-spanned="2">
                                                                        <fo:block font-size="11pt" 
text-align="left" font-weight="bold">
                                                                                
<xsl:value-of select="$pmc"/>
                                                                        
</fo:block>
                                                                </fo:table-cell>
                                                        </fo:table-row>
                                                
                                                </fo:table-body>
                                        </fo:table>
                                        
                                        <fo:block font-size="10pt" font-style="italic" 
padding-before="2mm"  padding-after="2mm" text-align="center" >
                                                        <fo:retrieve-marker 
retrieve-class-name="tab_continued" retrieve-position="first-starting-within-page" 
retrieve-boundary="page"/>

                                                </fo:block>
                                        
        
                                </fo:static-content>

Then in fo:table-header element:
<xsl:for-each select="row">
<fo:table-row>
                                                                                      
          <fo:table-cell>
                                                                                                
 <fo:marker marker-class-name="tab_continued">
                                                                                                        <fo:block font-size="10pt" 
text-indent="5mm" font-style="italic" text-align="center" keep-with-next="always" padding-before="1mm" 
padding-after="1mm" >
                                                                                
                                
                                                                                                          
              <fo:inline border-bottom-style="solid"  border-width=".5pt">
                                                                                                    
                           Table <xsl:value-of select="$tabNum"/>&#xa0; 
(Continued)
                                                                                      
                                          </fo:inline>
                                                                                
                                
                                                                                      
                  </fo:block>
                                                                                      
                  </fo:marker>
                                                                                      
          </fo:table-cell>
                                                                                      
  </fo:table-row>
<fo:table-row>  Then formatting for other rows.

Then in fo:table-body element:

<xsl:for-each select="row">
                                                                                
        
                                                                                        
<xsl:if test="not(parent::tbody/preceding-sibling::thead)">
                                                                                                
<fo:table-row padding-after="2mm">
                                                                                                
        <fo:table-cell padding-after="2mm">
                                                                                                
                <fo:marker marker-class-name="tab_continued">
                                                                                                                        <fo:block 
font-size="10pt" text-indent="5mm" font-style="italic" text-align="center" keep-with-next="always" 
padding-before="1mm" padding-after="2mm" >
                                                                                
                                                
                                                                                                          
                      <fo:inline border-bottom-style="solid"  
border-width=".5pt">
                                                                                                    
                                    Table <xsl:value-of 
select="$tabNum"/>&#xa0; (Continued)
                                                                                      
                                          </fo:inline>
                                                                                
                                                
                                                                                      
                                  </fo:block>
                                                                                      
                          </fo:marker>
                                                                                      
                  </fo:table-cell>
                                                                                      
          </fo:table-row>
                                                                                      
  </xsl:if>
                                                                                        
<fo:table-row > <!-- other row formatting -->

It takes a bit getting this to work, but it does work.  Here is a link that 
helps:
http://www.dpawson.co.uk/xsl/sect3/markers.html#d14055e100
Also there is more info out there if you search.  Might even be some on this in 
users forum.

Hope it helps, Craig



-----Original Message-----
From: Luis Bernardo [mailto:lmpmberna...@gmail.com]
Sent: Tuesday, June 26, 2012 3:34 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Table continuation headers


Incidentally I started looking at this recently but it will be a couple of 
months before I am able to show some code. I haven't written anything so far 
but I found there is already some code in FOP for table markers.
So we don't need to start from zero.


On 6/25/12 4:34 PM, Stefan Hinz wrote:
Thanks for confirming, Glenn!

Cheers,

Stefan

On 25.06.2012 16:17, Glenn Adams wrote:

On Mon, Jun 25, 2012 at 4:06 AM, Stefan Hinz <stefan.h...@oracle.com
<mailto:stefan.h...@oracle.com>> wrote:

     Below is an explanation sent on behalf of my colleague Gavin who's
     just joined this list. He's mostly citing from Bob's fine book.
:-)


Thanks for Gavin's input, which is accurate to my knowledge.

     My understanding is that FOP 1.0 does not support the use of the
     |retrieve-table-marker| property with tables, and is unlikely to do
     so in the near future. See
     http://xmlgraphics.apache.org/fop/compliance.html, which implies
     that the property will likely not be supported in 1.1(?). A modified
     table header isn't an ideal solution - I'd prefer to insert a
     modified table title as in the XEP |rx:table-omit-initial-header|
     extension - but it would be better than nothing.


Correct, FOP does not currently support retrieve-table-marker. There
has been no activity on implementing this feature, so it definitely
will not be in FOP 1.1. I can't say when a patch or a volunteer will
materialize to work on this, so it will remain TBD until that time.

G.






---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



--
Cheers,

Stefan Hinz <stefan.h...@oracle.com>, MySQL Documentation Manager

Phone: +49-30-82702940, Fax: +49-30-82702941, http://dev.mysql.com/doc

ORACLE Deutschland B.V.&  Co. KG
Registered Office: Riesstr. 25, 80992 Muenchen, Germany
Commercial Register: Local Court Of Munich, HRA 95603
Managing Director: J├╝rgen Kunz

General Partner: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Register Of Chamber Of Commerce: Midden-Niederlande, No. 30143697
Managing Directors: Alexander van der Ven, Astrid Kepper, Val Maher



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to