W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2008

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

From: Huditsch, Roman (LNG-VIE) <Roman.Huditsch@lexisnexis.at>
Date: Fri, 7 Mar 2008 11:37:06 +0100
Message-ID: <AB4D914EE3A3254CA8F439925297E4C603AF0F44@LNGVIEEXCP01VB.legal.regn.net>
To: <www-xsl-fo@w3.org>

Hi,
 
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
Received on Friday, 7 March 2008 10:37:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 March 2008 10:37:51 GMT