You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Stefan Hinz <st...@oracle.com> on 2012/06/22 16:59:06 UTC

Table continuation headers

A colleague of mine is working to implement company standards for 
tables. In PDF, those standards require table continuation headers, by 
repeating the table title followed by the string "(Continued)" at the 
top of the page.

XEP supports this, but FOP doesn't. Does anyone know of plans to support 
this in FOP in the future?

-- 
Cheers,

Stefan Hinz <st...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Table continuation headers

Posted by Craig Christophersen <cr...@synesis7.com>.
The value for variable $tabNum is achievied by using xsl:number and count attribute to count the tables in the source xml, from whatever node you want to count from relative to the current table node.

 

From: gavin bowe [mailto:gavin.bowe@oracle.com] 
Sent: Monday, July 02, 2012 1:10 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Table continuation headers

 

Aha, of course. Thank you. It would probably be better that I ask my other questions in a more appropriate forum. 

On 01/07/2012 15:50, Glenn Adams wrote: 

better to use text-align="start" instead of "left" for correct handling of both lr and rl writing modes

On Sun, Jul 1, 2012 at 8:36 AM, gavin bowe <ga...@oracle.com> wrote:

Thanks Craig,

That's a handy workaround - although you can only use <fo:retrieve-marker> within static content as far as I understand such things. It would be good to know how to access the formal table number (shown as $tabNum in the extract below).

The XSL for the continuation text would also need to be internationalized and new localized entries created in the customization layer files for each supported language. I'm not quite sure how to implement the I18n bit - any "key" pointers would be welcome. I expect that the placement of the text might also need to be internationalized to support languages that don't read from top left to bottom right.

Gavin

On 26/06/2012 23: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


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

 


Re: Table continuation headers

Posted by gavin bowe <ga...@oracle.com>.
Aha, of course. Thank you. It would probably be better that I ask my 
other questions in a more appropriate forum.

On 01/07/2012 15:50, Glenn Adams wrote:
> better to use text-align="start" instead of "left" for correct 
> handling of both lr and rl writing modes
>
> On Sun, Jul 1, 2012 at 8:36 AM, gavin bowe <gavin.bowe@oracle.com 
> <ma...@oracle.com>> wrote:
>
>     Thanks Craig,
>
>     That's a handy workaround - although you can only use
>     <fo:retrieve-marker> within static content as far as I understand
>     such things. It would be good to know how to access the formal
>     table number (shown as $tabNum in the extract below).
>
>     The XSL for the continuation text would also need to be
>     internationalized and new localized entries created in the
>     customization layer files for each supported language. I'm not
>     quite sure how to implement the I18n bit - any "key" pointers
>     would be welcome. I expect that the placement of the text might
>     also need to be internationalized to support languages that don't
>     read from top left to bottom right.
>
>     Gavin
>
>     On 26/06/2012 23: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
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail:
>     fop-users-unsubscribe@xmlgraphics.apache.org
>     <ma...@xmlgraphics.apache.org>
>     For additional commands, e-mail:
>     fop-users-help@xmlgraphics.apache.org
>     <ma...@xmlgraphics.apache.org>
>
>

Re: Table continuation headers

Posted by Glenn Adams <gl...@skynav.com>.
better to use text-align="start" instead of "left" for correct handling of
both lr and rl writing modes

On Sun, Jul 1, 2012 at 8:36 AM, gavin bowe <ga...@oracle.com> wrote:

> Thanks Craig,
>
> That's a handy workaround - although you can only use <fo:retrieve-marker>
> within static content as far as I understand such things. It would be good
> to know how to access the formal table number (shown as $tabNum in the
> extract below).
>
> The XSL for the continuation text would also need to be internationalized
> and new localized entries created in the customization layer files for each
> supported language. I'm not quite sure how to implement the I18n bit - any
> "key" pointers would be welcome. I expect that the placement of the text
> might also need to be internationalized to support languages that don't
> read from top left to bottom right.
>
> Gavin
>
> On 26/06/2012 23: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<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
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: fop-users-unsubscribe@**xmlgraphics.apache.org<fo...@xmlgraphics.apache.org>
> For additional commands, e-mail: fop-users-help@xmlgraphics.**apache.org<fo...@xmlgraphics.apache.org>
>
>

Re: Table continuation headers

Posted by gavin bowe <ga...@oracle.com>.
Thanks Craig,

That's a handy workaround - although you can only use 
<fo:retrieve-marker> within static content as far as I understand such 
things. It would be good to know how to access the formal table number 
(shown as $tabNum in the extract below).

The XSL for the continuation text would also need to be 
internationalized and new localized entries created in the customization 
layer files for each supported language. I'm not quite sure how to 
implement the I18n bit - any "key" pointers would be welcome. I expect 
that the placement of the text might also need to be internationalized 
to support languages that don't read from top left to bottom right.

Gavin

On 26/06/2012 23: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

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


Re: Table continuation headers

Posted by Stefan Hinz <st...@oracle.com>.
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:lmpmbernardo@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.hinz@oracle.com
>>> <ma...@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-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


-- 
Cheers,

Stefan Hinz <st...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Table continuation headers

Posted by Craig Christophersen <cr...@synesis7.com>.
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:lmpmbernardo@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.hinz@oracle.com 
>> <ma...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


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


Re: Table continuation headers

Posted by Stefan Hinz <st...@oracle.com>.
Thanks, Chris! Good to hear this is on the radar!

Stefan

On 29.06.2012 17:47, Chris Bowditch wrote:
> On 28/06/2012 14:21, Stefan Hinz wrote:
>> Hi Luis,
>
> Hi Stefan,
>
>>
>>> 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.
>>
>> So does this mean that table continuation headers *are* on the
>> roadmap, or at least on the radar?
>>
> Yes. Table-marker support is on the roadmap, but other bugs/issues keep
> getting in the way of implementing them, so we can't give you a firm ETA
> on when they will be supported.
>
> Thanks,
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


-- 
Cheers,

Stefan Hinz <st...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Table continuation headers

Posted by Chris Bowditch <bo...@hotmail.com>.
On 28/06/2012 14:21, Stefan Hinz wrote:
> Hi Luis,

Hi Stefan,

>
>> 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.
>
> So does this mean that table continuation headers *are* on the 
> roadmap, or at least on the radar?
>
Yes. Table-marker support is on the roadmap, but other bugs/issues keep 
getting in the way of implementing them, so we can't give you a firm ETA 
on when they will be supported.

Thanks,

Chris


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


Re: Table continuation headers

Posted by Stefan Hinz <st...@oracle.com>.
Hi Luis,

> 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.

So does this mean that table continuation headers *are* on the roadmap, 
or at least on the radar?

-- 
Cheers,

Stefan Hinz <st...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Table continuation headers

Posted by Luis Bernardo <lm...@gmail.com>.
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.hinz@oracle.com
>> <ma...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Table continuation headers

Posted by Stefan Hinz <st...@oracle.com>.
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.hinz@oracle.com
> <ma...@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.
>


-- 
Cheers,

Stefan Hinz <st...@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Table continuation headers

Posted by Glenn Adams <gl...@skynav.com>.
On Mon, Jun 25, 2012 at 4:06 AM, Stefan Hinz <st...@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.

Re: Table continuation headers

Posted by Glenn Adams <gl...@skynav.com>.
Perhaps you could describe what language features/extensions that XEP uses
to do this?

On Fri, Jun 22, 2012 at 8:59 AM, Stefan Hinz <st...@oracle.com> wrote:

> A colleague of mine is working to implement company standards for tables.
> In PDF, those standards require table continuation headers, by repeating
> the table title followed by the string "(Continued)" at the top of the page.
>
> XEP supports this, but FOP doesn't. Does anyone know of plans to support
> this in FOP in the future?
>
> --
> Cheers,
>
> Stefan Hinz <st...@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-unsubscribe@**xmlgraphics.apache.org<fo...@xmlgraphics.apache.org>
> For additional commands, e-mail: fop-users-help@xmlgraphics.**apache.org<fo...@xmlgraphics.apache.org>
>
>