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 Georg Datterl <ge...@geneon.de> on 2010/01/21 17:32:13 UTC

zero height block

Hi everybody,

Todays question is quite simple, I hope. I have a block covering two pages. This block is full of content and basically takes all the available space. Now I want to know the last page number. Being an experienced FOP mailing list reader, I know, I can use id="end-of-document". 

But where? 
Setting the id on the big block gives a wrong result, obviously, since the id is at the beginning of the block, page 1 instead of page 2. 
But adding a new block with only an id gives a wrong result too, since the block is placed on a new third page. 
Keeping the block on the same page as the previous block pulls the last content of the first block (depending on widows-setting) on the next page.
Is there a way to define a zero height block, so it will still be generated on the first page? line-height="0pt" and block-progression-dimension="0pt" don't change a thing.

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 

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


AW: zero height block

Posted by Georg Datterl <ge...@geneon.de>.
Hi Vincent, 

Yes, I am pretty sure. This is what I get from the area tree:

<regionBody ipd="235276" bpd="364253" ipda="235276" bpda="364253" bap="0 0 0 0" is-reference-area="true" name="xsl-region-body" ctm="[1.0 0.0 0.0 1.0 22677.0 28346.0]">
	<beforeFloat/>
	<mainReference ipd="0" bpd="0" bap="0 0 0 0" is-reference-area="true">
		<span ipd="235276" bpd="0" ipda="235276" bap="0 0 0 0" is-reference-area="true">
			<flow ipd="235276" bpd="0" ipda="235276" bap="0 0 0 0" is-reference-area="true">
				<block ipd="235276" bpd="0" ipda="235276" bap="0 0 0 0" prod-id="end-of-document"/>
			</flow>
		</span>
	</mainReference>
	<footnote top-offset="0"/>
</regionBody>

Looks empty and zerosized to me. Only on the wrong page. If there's no obvious reason, I'll prepare a testcase. Without tables!

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: Vincent Hennebert [mailto:vhennebert@gmail.com] 
Gesendet: Donnerstag, 21. Januar 2010 18:18
An: fop-users@xmlgraphics.apache.org
Betreff: Re: zero height block

Hi Georg,

Georg Datterl wrote:
> Hi everybody,
> 
> Todays question is quite simple, I hope. I have a block covering two pages. This block is full of content and basically takes all the available space. Now I want to know the last page number. Being an experienced FOP mailing list reader, I know, I can use id="end-of-document". 
> 
> But where? 
> Setting the id on the big block gives a wrong result, obviously, since the id is at the beginning of the block, page 1 instead of page 2. 
> But adding a new block with only an id gives a wrong result too, since the block is placed on a new third page. 
> Keeping the block on the same page as the previous block pulls the last content of the first block (depending on widows-setting) on the next page.
> Is there a way to define a zero height block, so it will still be generated on the first page? line-height="0pt" and block-progression-dimension="0pt" don't change a thing.

Are you sure your block really is empty? Normally, doing the following
works:
<fo:block id="last-page"/>

Vincent


> Regards,
>  
> Georg Datterl
>  
> ------ Kontakt ------
>  
> Georg Datterl
>  
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>  
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
> 
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>  
> www.geneon.de
>  
> Weitere Mitglieder der Willmy MediaGroup:
>  
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de 
> 
> ---------------------------------------------------------------------
> 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: zero height block

Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Georg,

Georg Datterl wrote:
> Hi everybody,
> 
> Todays question is quite simple, I hope. I have a block covering two pages. This block is full of content and basically takes all the available space. Now I want to know the last page number. Being an experienced FOP mailing list reader, I know, I can use id="end-of-document". 
> 
> But where? 
> Setting the id on the big block gives a wrong result, obviously, since the id is at the beginning of the block, page 1 instead of page 2. 
> But adding a new block with only an id gives a wrong result too, since the block is placed on a new third page. 
> Keeping the block on the same page as the previous block pulls the last content of the first block (depending on widows-setting) on the next page.
> Is there a way to define a zero height block, so it will still be generated on the first page? line-height="0pt" and block-progression-dimension="0pt" don't change a thing.

Are you sure your block really is empty? Normally, doing the following
works:
<fo:block id="last-page"/>

Vincent


> Regards,
>  
> Georg Datterl
>  
> ------ Kontakt ------
>  
> Georg Datterl
>  
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>  
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert 
> 
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>  
> www.geneon.de
>  
> Weitere Mitglieder der Willmy MediaGroup:
>  
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de 
> 
> ---------------------------------------------------------------------
> 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: zero height block

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Hi Georg,

XSL 1.1 offers fo:page-number-citation-last which is more reliable. Just
reference the "id" of your fo:page-sequence.

On 21.01.2010 17:32:13 Georg Datterl wrote:
> Hi everybody,
> 
> Todays question is quite simple, I hope. I have a block covering two pages. This block is full of content and basically takes all the available space. Now I want to know the last page number. Being an experienced FOP mailing list reader, I know, I can use id="end-of-document". 
> 
> But where? 
> Setting the id on the big block gives a wrong result, obviously, since the id is at the beginning of the block, page 1 instead of page 2. 
> But adding a new block with only an id gives a wrong result too, since the block is placed on a new third page. 
> Keeping the block on the same page as the previous block pulls the last content of the first block (depending on widows-setting) on the next page.
> Is there a way to define a zero height block, so it will still be generated on the first page? line-height="0pt" and block-progression-dimension="0pt" don't change a thing.
> 
> Regards,
>  
> Georg Datterl
>  



Jeremias Maerki


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