W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2004

Re: Alternating region-after based on even/odd page?

From: Girish Kanmas <girishrk@india.ti.com>
Date: Mon, 19 Jan 2004 10:47:15 +0530
To: <www-xsl-fo@w3.org>
Message-ID: <002101c3de4b$80e37690$9b52579d@x00nkulk>



<!-- ================== -->  
<!-- EVEN Page Layout -->
<!-- ================== -->  
<fo:simple-page-master	master-name="even-page"
				page-height="11in" 
				page-width="8.5in"
				margin-top="0.5in"
				margin-bottom="0.5in"
	        			margin-left="0.5in" 
				margin-right="0.5in">
	<fo:region-body	region-name="xsl-region-body"
        				margin-top="1in" 
				margin-bottom="0.5in"
        				margin-left="0.75in" 
				margin-right="0.75in"/>
	<fo:region-before 	region-name="even-page-header"
				extent="1in"/>
	<fo:region-after 	region-name="even-page-footer"
				extent="0.5in"/>
	<fo:region-start 	region-name="even-page-left"
				extent="0.5in"/>
	<fo:region-end 		extent="0.5in"/>
</fo:simple-page-master>
<!-- ================ -->  
<!-- ODD Page Layout -->
<!-- ================ -->  
<fo:simple-page-master	master-name="odd-page"
				page-height="11in" 
				page-width="8.5in"
				margin-top="0.5in"
				margin-bottom="0.5in"
        				margin-left="0.5in" 
				margin-right="0.5in">
	<fo:region-body	region-name="xsl-region-body"
     				margin-top="1in" 
				margin-bottom="0.5in"
        				margin-left="0.75in" 
				margin-right="0.75in"/>
	<fo:region-before	region-name="odd-page-header"
			 	extent="1in"/>
	<fo:region-after 	region-name="odd-page-footer"
				extent="0.5in"/>
	<fo:region-start extent="0.5in"/>
	<fo:region-end 	region-name="odd-page-right"
				extent="0.5in"/>
</fo:simple-page-master>
<!--======Page Sequence =================-->
	<fo:page-sequence-master 	master-name="booklet-sequence">
		<fo:repeatable-page-master-alternatives>
      			<fo:conditional-page-master-reference	page-position="first"
                                       				master-reference="first-page"/>
	        	<fo:conditional-page-master-reference 	odd-or-even="odd"
                                       				master-reference="odd-page"/>
       			<fo:conditional-page-master-reference 	odd-or-even="even"
                                       				master-reference="even-page"/>
      			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
 	</fo:layout-master-set>
<!--======Odd Page  =================-->
<fo:static-content flow-name="odd-page-footer">
	<fo:block>............</fo:block>
</fo:static-content>
<!--======EVEN Page  =================-->
<fo:static-content flow-name="even-page-footer">
	<fo:block>............</fo:block>
</fo:static-content>



TI Extn: 1387
Mobile: +91 (80) 56728348
Received on Monday, 19 January 2004 00:18:40 GMT

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