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 "Huditsch, Roman (LNG-VIE)" <Ro...@lexisnexis.at> on 2008/03/07 12:23:02 UTC

Align block in xsl-region-end with page-number in xsl-region-after

Hi,

Sorry for the cross post, but after a short consideration my mail seems
more appropriate for the FOP list.
 
I'm having troubles positionating (only) the last block in my
xsl-region-end area at the same level with my page number in the
xsl-region-after section.
All other blocks in xsl-region-end should be aligned to the top.

I tried different possible solutions with footnotes and markers, but
with no success. 
I'm using FOP 0.94.

Furthermore, it seems that FOP is ignoring my margin-bottom definitions
for xsl-region-end. Do you know why? Did I do a mistake in my page
definitions?

Pleas help me! I am totally lost.
Thanks!

Here is a snippet of my FO file:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns="http://docbook.org/ns/docbook">

	<fo:layout-master-set>

		<fo:simple-page-master master-name="anschreiben"
page-width="210mm" page-height="297mm" margin-top="20mm"
margin-bottom="18mm" margin-left="10.5mm" margin-right="12mm">
			<fo:region-body margin-left="15.5mm"
margin-right="43mm" margin-bottom="17mm" margin-top="29mm"/>
			<fo:region-before extent="29mm"
precedence="true" region-name="kopfzeile"/>
			<fo:region-after extent="5mm"
region-name="fusszeile"/>
			<fo:region-end extent="38mm" precedence="true"
region-name="marginalspalte"/>
		</fo:simple-page-master>

		<fo:simple-page-master master-name="folgeseite"
page-width="210mm" page-height="297mm" margin-top="20mm"
margin-bottom="18mm" margin-left="10.5mm" margin-right="16mm">
			<fo:region-body margin-left="15.5mm"
margin-right="0mm" margin-bottom="17mm" margin-top="29mm"/>
			<fo:region-before extent="29mm"
precedence="true" region-name="kopfzeile"/>
			<fo:region-after extent="5mm"
region-name="fusszeile"/>
			<fo:region-start extent="5mm"/>
		</fo:simple-page-master>

		<fo:page-sequence-master master-name="rechnung">
			<fo:repeatable-page-master-alternatives>
				<fo:conditional-page-master-reference
master-reference="anschreiben" page-position="first"/>
				<fo:conditional-page-master-reference
master-reference="folgeseite" page-position="rest"/>
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
	</fo:layout-master-set>

	<fo:page-sequence master-reference="rechnung">

		<fo:static-content flow-name="kopfzeile">
			<fo:block margin-top="2mm">
				<fo:external-graphic
src="url('config/images/logo.gif')"/>
			</fo:block>
		</fo:static-content>

		<fo:static-content flow-name="marginalspalte">
			<fo:block-container>
				<fo:block>Deal ID: 797046</fo:block>
				<fo:block>Page Number:
<fo:page-number-citation ref-id="last-page"/></fo:block>
				<fo:block>Text at the bottom of the
page</fo:block>		
			</fo:block-container>
		</fo:static-content>

		<fo:static-content flow-name="fusszeile">
			<fo:block>
				<fo:page-number/> |
<fo:page-number-citation ref-id="last-page"/>
			</fo:block>
		</fo:static-content>

		<fo:flow flow-name="xsl-region-body">
			<fo:block>Some Text</fo:block>
			<fo:block id="last-page"/>
		</fo:flow>
	</fo:page-sequence>
</fo:root>


best regards,
Roman

> -----Original Message-----
> From: Huditsch, Roman (LNG-VIE) 
> Sent: Friday, March 07, 2008 11:51 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: "page width may not change among pages"
> 
>  
> Hi,
> 
> I am trying to define a layout-master with different 
> simple-page-masters for the first and all other pages. 
> Doing this I seem to be running in the limitation mentioned 
> on the compliance site:
> 
>  [0.93 and later] The page width may not change among pages 
> of the same page-sequence unless a forced break is inserted. 
> 
> Is there any way to get around this limitation without 
> knowing beforehand which elements will appear on which page?
> Unfortunately I can't insert an hard-coded paeg-break if a 
> specific element is getting transformed in my XSL-FO transformation.
> 
> Thanks!
> 
> best regards,
> Roman
> 
> 
> 
> Mag. (FH) Roman Huditsch
> Leitung Team Technische Konvertierung AT/DE
> Tel.:  +43-1-534 52-1514
> Fax.: +43-1-534 52-140
> roman.huditsch@lexisnexis.at <ma...@lexisnexis.at> 
> 
> LexisNexis Verlag ARD Orac GmbH & Co KG
> FN 8333f, Handelsgericht Wien
> 1030 Wien, Marxergasse 25
> www.lexisnexis.at <blocked::http://www.lexisnexis.at> 
> 
> 

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


Re: Align block in xsl-region-end with page-number in xsl-region-after

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I've already answered Roman on www-xsl-fo@w3.org. We'll continue the
thread here. Roman, I hope you don't mind if I copy your off-list
response to me here.

On 07.03.2008 12:33:39 Huditsch, Roman (LNG-VIE) wrote:
> Hi Jeremias,
> 
> > What about display-align="after" on fo:region-after and fo:region-end?
> > I'm not sure if I understood what you want to do.
> 
> Yes, that was my first try. But doing this all blocks in the region are
> aligned to the bottom.
> Instead the first block in my region should align to the top - the last
> to the bottom.

Ok, I see.

You could use this:
        <fo:block space-before.minimum="10mm" space-before.optimum="100cm">Text at the bottom of the page</fo:block>

This would push the last block all the way down. However, that only
works for 0.94 or later, not in 0.20.5 if you have to switch back to
that.

Another way I see is that you just put this text on the page footer.
After all you can have different footers on different pages. If
necessary, you can always use a negative end-indent to position text
outside the footer region.

> 
> like:
> 
> 
> Lore ipsum Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsum
> BLOCK First
> Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLore ipsumL
> Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLore ipsum
> Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLor
> Other Blocks
> Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLo
> Other Blocks
> Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLore ipsum
> Lore ipsumLore ipsumLore ipsumLore ipsumLore ipsumLore ipsum
> 	
> BLOCK Last
> 	
> BLOCK Last
> Page 1/2
> BLOCK Last
> 
> 
> > fo:region-end does not include the "Common Margin 
> > Properties-Block" so doesn't support margins. That's why they 
> > are ignored.
> > http://www.w3.org/TR/xsl11/#fo_region-end
> 
> Should only those margins be ignored, which are defined at the region
> itself?
> <fo:region-after margin="".../>

Yes.

> My problem is rather that the margins defined for my whole page are
> ignored by my region-end:
> <fo:simple-page-master page-width="210mm" page-height="297mm"
> margin-top="20mm" margin-bottom="18mm" margin-left="10.5mm"
> margin-right="12mm">

I don't see that if I run your example. The page margins (from
simple-page-master) are right there. Maybe I misunderstand you again.


Jeremias Maerki


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