[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:fo page numbering on alternate sides
At 2005-01-20 11:01 +0000, Dev Anand wrote:
I have a problem with the page numbering.The result of my xsl:fo PDF file is printed like a book.. Point your page-sequence to a page-sequence-master that defines a repeatable sequence of alternatives between two conditional-page-master-references: one testing page parity for odd page numbers and the other testing page parity for even page numbers. The two simple-page-masters that you point to need then to define differently-named region-after extents, one used as the odd-page and one for the even-page. Your page sequence then defines two pieces of static content, one with the page number on the right for the region-after named in the odd page master, and one with the page number on the left for the region-after named in the even page master. The formatter will obtain "the next page" from the page sequence that alternates between the two page masters and you will get alternating footers. I hope this helps. ............................... Ken p.s. here is an example for headers that you can adapt for footers: <layout-master-set> <simple-page-master master-name="frame-odd" page-height="&page-height;" page-width="&page-width;" margin-top="&margin-top;" margin-bottom="&margin-bottom;" margin-left="&margin-left;" margin-right="&margin-right;"> <region-body region-name="frame-body" margin-top="&before-extent;" margin-bottom="&after-extent;"/> <region-before extent="&before-extent;" region-name="frame-before-o"/> </simple-page-master> <simple-page-master master-name="frame-even" page-height="&page-height;" page-width="&page-width;" margin-top="&margin-top;" margin-bottom="&margin-bottom;" margin-left="&margin-left;" margin-right="&margin-right;"> <region-body region-name="frame-body" margin-top="&before-extent;" margin-bottom="&after-extent;"/> <region-before extent="&before-extent;" region-name="frame-before-e"/> </simple-page-master> <page-sequence-master master-name="frame-pages"> <repeatable-page-master-alternatives> <conditional-page-master-reference odd-or-even="even" master-reference="frame-even"/> <conditional-page-master-reference odd-or-even="odd" master-reference="frame-odd"/> </repeatable-page-master-alternatives> </page-sequence-master> </layout-master-set> <page-sequence master-reference="frame-pages" force-page-count="even"> <static-content flow-name="frame-before-e"> <block>frame-even - <page-number/></block> </static-content> <static-content flow-name="frame-before-o"> <block>frame-odd - <page-number/></block> </static-content> <flow flow-name="frame-body" font-size="40pt"> <block...>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|