W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2001

page-position "first" "rest" and "last"

From: Patel, Navin S (GEA, 079716) <NAVIN.PATEL@APPL.GE.COM>
Date: Tue, 26 Jun 2001 20:05:16 -0400
Message-ID: <3B617C84FCBED3118E730000F84A1934097AA52C@ap3expr5applge.appl.ge.com>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
Hello,

I am trying to generate a page-sequence with 3 simple page masters. "first"
page, "rest" and "last" page using the conditional-page-master-reference.
But the last page always gets the properties of the "rest" page.
What am i missing here ?

Thanks,
Navin

 		<fo:layout-master-set>
			<fo:simple-page-master margin-right="1.5cm"
margin-left="2cm" margin-bottom="1cm" margin-top="1cm" page-width="21.5cm"
page-height="27.8cm" master-name="cover">
				<fo:region-before extent="12cm"
region-name="cover_header"/>
				<fo:region-after extent="2.5cm"
region-name="cover_footer"/>
            	<fo:region-body margin-top="12cm" margin-bottom="4cm"/>
			</fo:simple-page-master>
		
			<fo:simple-page-master margin-right="1.5cm"
margin-left="2cm" margin-bottom="1cm" margin-top="1cm" page-width="21.5cm"
page-height="27.8cm" master-name="rest">
				<fo:region-before extent="8cm"
region-name="rest_header"/>
				<fo:region-after extent="2.5cm"
region-name="rest_footer"/>
            	<fo:region-body margin-top="8cm" margin-bottom="4cm"/>
			</fo:simple-page-master>

			<fo:simple-page-master margin-right="1.5cm"
margin-left="2cm" margin-bottom="1cm" margin-top="1cm" page-width="21.5cm"
page-height="27.8cm" master-name="last">
				<fo:region-before extent="8cm"
region-name="last_header"/>
				<fo:region-after extent="2.5cm"
region-name="last_footer"/>
            	<fo:region-body margin-top="8cm" margin-bottom="4cm"/>
			</fo:simple-page-master>

			<fo:page-sequence-master master-name="contents">
				<fo:repeatable-page-master-alternatives>
	
<fo:conditional-page-master-reference page-position="first"
master-name="cover"/>
	
<fo:conditional-page-master-reference page-position="rest"
master-name="rest"/>
	
<fo:conditional-page-master-reference page-position="last"
master-name="last"/>
				</fo:repeatable-page-master-alternatives>
							
			</fo:page-sequence-master>

		</fo:layout-master-set>
Received on Tuesday, 26 June 2001 20:04:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT