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 chinlu chinawa <ch...@yahoo.co.uk> on 2005/11/19 03:27:26 UTC

Page breaking handling

 Hi guys,
  
  I placed a question a time back regarding how to handle page-breaking, but anybody said anything.
  
  I´ve just uploaded some images, and I´m just wondering whether anyone  could let me know which is the normal procedure for this cases, you can  see them here:
  
  http://www10.brinkster.com/repos/default.htm
  
  As I said, I´m using as many profiling this way:
  
  <para condition="hard-copy"/>
  
  As I need, but it normally breaks "justify-effect" on the last line of the page, and
  I get some extra pages at the end of some chapters as well. Also, using  as many para´s as needed casuses the begining text of the page no to be  always at the same possition.
  
  I would like to know how this is usually worked around, so any comments  about would be much appreciated. Once more, sorry my english.
  
  Thanks very much.
  

		
---------------------------------
  Win a Yahoo! Vespa NEW - Yahoo! Cars has 3 Vespa LX125s to be won Enter Now! 

Re: Long Table repeat header

Posted by Glen Mazza <gm...@apache.org>.
There's a nice new critter in XSL 1.1, fo:retrieve-table-marker[1][2], 
that appears to be the "legal" way of doing what is wanted here.  But 
that will need to wait for implementation in the new version.

Glen

[1] http://www.w3.org/TR/xsl11/#fo_retrieve-table-marker
[2] http://www.w3.org/TR/xsl11/#d0e14560


Jeremias Maerki wrote:
> static-content is usually layed out after the region-body. Only after a
> region-body is fully processed do you know which elements are on the
> page and therefore which markers apply. Since markers can contain
> content of variable height, different content would have an influence on
> the layout in the region-body and could then trigger a "relayout" of the
> region-body, possibly causing changes in active markers etc. etc. The
> worst case is an infinite loop. :-)
> 
> On 22.11.2005 21:44:01 Sascha Schmidt wrote:
> 
>>I wonder, why fo:retrieve-marker is restricted to static content and not
>>allowed in the flow. Does anybody has an explanation?
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> 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: Long Table repeat header

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
static-content is usually layed out after the region-body. Only after a
region-body is fully processed do you know which elements are on the
page and therefore which markers apply. Since markers can contain
content of variable height, different content would have an influence on
the layout in the region-body and could then trigger a "relayout" of the
region-body, possibly causing changes in active markers etc. etc. The
worst case is an infinite loop. :-)

On 22.11.2005 21:44:01 Sascha Schmidt wrote:
> I wonder, why fo:retrieve-marker is restricted to static content and not
> allowed in the flow. Does anybody has an explanation?


Jeremias Maerki


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


RE: Long Table repeat header

Posted by Sascha Schmidt <co...@northbit.de>.
Hi,

Yes, you are right, the specification says "An fo:retrieve-marker is only
permitted as the descendant of an fo:static-content.". But nevertheless it
works with FOP 0.20.5. ;-) 
But maybe the FOP extension (already mentioned by Pascal Sancho) is a
"cleaner" solution:
http://xmlgraphics.apache.org/fop/0.20.5/extensions.html#table-continue-labe
l

I wonder, why fo:retrieve-marker is restricted to static content and not
allowed in the flow. Does anybody has an explanation?

Cheers,
Sascha


-----Original Message-----
From: Prakash R [mailto:raghits@yahoo.com] 
Sent: Tuesday, November 22, 2005 6:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Long Table repeat header

Isn't it true that fo:retrieve-marker can only be used within a
fo:static-content? If so, how will this work?
Are there any other options?

Thank you.
Prakash

--- Sascha Schmidt <co...@northbit.de> wrote:

> Hi,
> 
> <fo:marker> and <fo:retrieve-marker> are your best friends here. 
> Example:
> 
> <fo:flow>
>   <fo:marker
> marker-class-name="continued"></fo:marker>
>   ...
>   <fo:table>
>    <fo:table-header>
>     <fo:table-row>
>      <fo:table-cell>Header <fo:retrieve-marker 
> retrieve-class-name="continued"/></fo:table-cell>
>     </fo:table-row>
>    </fo:table-header>   
>    <fo:table-body>
>     <fo:table-row>
>      <fo:table-cell>
>       <fo:marker
> marker-class-name="continued">cont.</fo:marker>
> 	content...
>     </fo:table-row>
>    </fo:table-body>
>   </fo:table>
> </fo:flow>
> 
> Cheers,
> Sascha
> 
> -----Original Message-----
> From: Prakash R [mailto:raghits@yahoo.com]
> Sent: Saturday, November 19, 2005 8:23 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Long Table repeat header
> 
> I have a document (FO-PDF) made up of multiple tables.
> Some of these tables are long and span multiple pages.
> I want to be able to repeat the header on the next page. But at the 
> same time I want to add the word continued for any subsequent pages. 
> i.e.
> 
> col1   col2   col3
> TABLE HEADER
> -------------------
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> --- page break ----
> col1   col2   col3
> TABLE HEADER (CONTD)
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> 
> col1   col2   col3
> TABLE HEADER2
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> --- page break ----
> col1   col2   col3
> TABLE HEADER3
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> 
> Is there anything in FO that will allow repeating of table header and 
> also modification of table header in subsequent pages?
> 
> Thank you.
> Prakash
> 
>
---------------------------------------------------------------------
> 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
> 
> 


---------------------------------------------------------------------
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: Long Table repeat header

Posted by Prakash R <ra...@yahoo.com>.
Isn't it true that fo:retrieve-marker can only be used
within a fo:static-content? If so, how will this work?
Are there any other options?

Thank you.
Prakash

--- Sascha Schmidt <co...@northbit.de> wrote:

> Hi,
> 
> <fo:marker> and <fo:retrieve-marker> are your best
> friends here. Example:
> 
> <fo:flow>
>   <fo:marker
> marker-class-name="continued"></fo:marker>
>   ...
>   <fo:table>
>    <fo:table-header>
>     <fo:table-row>
>      <fo:table-cell>Header <fo:retrieve-marker
> retrieve-class-name="continued"/></fo:table-cell>
>     </fo:table-row>
>    </fo:table-header>   
>    <fo:table-body>
>     <fo:table-row>
>      <fo:table-cell>
>       <fo:marker
> marker-class-name="continued">cont.</fo:marker>
> 	content...
>     </fo:table-row>
>    </fo:table-body>
>   </fo:table>
> </fo:flow>
> 
> Cheers,
> Sascha  
> 
> -----Original Message-----
> From: Prakash R [mailto:raghits@yahoo.com] 
> Sent: Saturday, November 19, 2005 8:23 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Long Table repeat header
> 
> I have a document (FO-PDF) made up of multiple
> tables.
> Some of these tables are long and span multiple
> pages.
> I want to be able to repeat the header on the next
> page. But at the same
> time I want to add the word continued for any
> subsequent pages. i.e.
> 
> col1   col2   col3
> TABLE HEADER
> -------------------
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> --- page break ----
> col1   col2   col3
> TABLE HEADER (CONTD)
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> 
> col1   col2   col3
> TABLE HEADER2
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> --- page break ----
> col1   col2   col3
> TABLE HEADER3
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> 
> Is there anything in FO that will allow repeating of
> table header and also
> modification of table header in subsequent pages?
> 
> Thank you.
> Prakash
> 
>
---------------------------------------------------------------------
> 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
> 
> 


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


RE: Long Table repeat header

Posted by Prakash R <ra...@yahoo.com>.
Isn't it true that fo:retrieve-marker can only be used
within a fo:static-content? If so, how will this work?
Are there any other options?

Thank you.
Prakash

--- Sascha Schmidt <co...@northbit.de> wrote:

> Hi,
> 
> <fo:marker> and <fo:retrieve-marker> are your best
> friends here. Example:
> 
> <fo:flow>
>   <fo:marker
> marker-class-name="continued"></fo:marker>
>   ...
>   <fo:table>
>    <fo:table-header>
>     <fo:table-row>
>      <fo:table-cell>Header <fo:retrieve-marker
> retrieve-class-name="continued"/></fo:table-cell>
>     </fo:table-row>
>    </fo:table-header>   
>    <fo:table-body>
>     <fo:table-row>
>      <fo:table-cell>
>       <fo:marker
> marker-class-name="continued">cont.</fo:marker>
> 	content...
>     </fo:table-row>
>    </fo:table-body>
>   </fo:table>
> </fo:flow>
> 
> Cheers,
> Sascha  
> 
> -----Original Message-----
> From: Prakash R [mailto:raghits@yahoo.com] 
> Sent: Saturday, November 19, 2005 8:23 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Long Table repeat header
> 
> I have a document (FO-PDF) made up of multiple
> tables.
> Some of these tables are long and span multiple
> pages.
> I want to be able to repeat the header on the next
> page. But at the same
> time I want to add the word continued for any
> subsequent pages. i.e.
> 
> col1   col2   col3
> TABLE HEADER
> -------------------
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> jjf   jflkds   jflkds
> fjs   jflsda   jklfds
> --- page break ----
> col1   col2   col3
> TABLE HEADER (CONTD)
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> 
> col1   col2   col3
> TABLE HEADER2
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> --- page break ----
> col1   col2   col3
> TABLE HEADER3
> -------------------
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> fjs   jflsda   jklfds
> 
> Is there anything in FO that will allow repeating of
> table header and also
> modification of table header in subsequent pages?
> 
> Thank you.
> Prakash
> 
>
---------------------------------------------------------------------
> 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
> 
> 


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


RE: Long Table repeat header

Posted by Sascha Schmidt <co...@northbit.de>.
Hi,

<fo:marker> and <fo:retrieve-marker> are your best friends here. Example:

<fo:flow>
  <fo:marker marker-class-name="continued"></fo:marker>
  ...
  <fo:table>
   <fo:table-header>
    <fo:table-row>
     <fo:table-cell>Header <fo:retrieve-marker
retrieve-class-name="continued"/></fo:table-cell>
    </fo:table-row>
   </fo:table-header>   
   <fo:table-body>
    <fo:table-row>
     <fo:table-cell>
      <fo:marker marker-class-name="continued">cont.</fo:marker>
	content...
    </fo:table-row>
   </fo:table-body>
  </fo:table>
</fo:flow>

Cheers,
Sascha  

-----Original Message-----
From: Prakash R [mailto:raghits@yahoo.com] 
Sent: Saturday, November 19, 2005 8:23 AM
To: fop-users@xmlgraphics.apache.org
Subject: Long Table repeat header

I have a document (FO-PDF) made up of multiple tables.
Some of these tables are long and span multiple pages.
I want to be able to repeat the header on the next page. But at the same
time I want to add the word continued for any subsequent pages. i.e.

col1   col2   col3
TABLE HEADER
-------------------
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
--- page break ----
col1   col2   col3
TABLE HEADER (CONTD)
-------------------
fjs   jflsda   jklfds
fjs   jflsda   jklfds

col1   col2   col3
TABLE HEADER2
-------------------
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds
--- page break ----
col1   col2   col3
TABLE HEADER3
-------------------
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds

Is there anything in FO that will allow repeating of table header and also
modification of table header in subsequent pages?

Thank you.
Prakash

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


Long Table repeat header

Posted by Prakash R <ra...@yahoo.com>.
I have a document (FO-PDF) made up of multiple tables.
Some of these tables are long and span multiple pages.
I want to be able to repeat the header on the next
page. But at the same time I want to add the word
continued for any subsequent pages. i.e.

col1   col2   col3
TABLE HEADER
-------------------
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
--- page break ----
col1   col2   col3
TABLE HEADER (CONTD)
-------------------
fjs   jflsda   jklfds
fjs   jflsda   jklfds

col1   col2   col3
TABLE HEADER2
-------------------
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds
--- page break ----
col1   col2   col3
TABLE HEADER3
-------------------
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds

Is there anything in FO that will allow repeating of
table header and also modification of table header in
subsequent pages?

Thank you.
Prakash

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