[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Different (body) layout on odd and even pages in

Subject: RE: Different (body) layout on odd and even pages in XSL-FO?
From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx>
Date: Tue, 14 Dec 2004 10:20:17 +0000
body layout
Hi

My problem is that I want the images of the products on the outer edge of the page, that is, images of the products to the left on the left page (odd) and to the right on the right page (even). I have figured out that it perhaps is necessary to use some kind of multiple/alternative flow (which isn't supported in XSL-FO 1.0), or is it possible to it in some other way? Is there any workaround?


You can achieve it by defination of the following layout master.
What you need to do is to calling the static-contect and region-body with right flow-name.
Hope it helps.


<fo:layout-master-set>
<fo:simple-page-master
master-name="odd"
page-height ="297mm"
page-width ="210mm"
margin-left ="2mm"
margin-right ="2mm">
<fo:region-body region-name="bodyodd" margin-top="118mm" margin-bottom="50mm" />
<fo:region-before region-name="headerodd" extent="116mm"/>
<fo:region-after region-name="footerodd" extent="48mm"/>
</fo:simple-page-master>


<fo:simple-page-master
master-name="even"
page-height ="297mm"
page-width ="210mm"
margin-left ="2mm"
margin-right ="2mm">
<fo:region-body region-name="bodyeven" margin-top="118mm" margin-bottom="50mm" />
<fo:region-before region-name="headereven" extent="116mm"/>
<fo:region-after region-name="footereven" extent="48mm"/>
</fo:simple-page-master>


<fo:page-sequence-master master-name="A4">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="odd" blank-or-not-blank="any" odd-or-even="odd" />
<fo:conditional-page-master-reference master-name="even" blank-or-not-blank="any" odd-or-even="even" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>


</fo:layout-master-set>

Cheers.

Arun

_________________________________________________________________
Chat with 1000s of singles. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Let BharatMatrimony.com's Instant Messenger show you how.


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.