Subject: Re: [xsl] Starting Initial Page Number on Page Two From: siarom egrub <egrubs@xxxxxxxxx> Date: Tue, 1 Sep 2009 18:09:17 -0700 (PDT) |
Hi Ken & et al: Thank you very much for the suggestion. I really appreciate your help. Upon implementing your suggested page-sequence-master object, I am now getting an extract first page or page one is displaying with the number "1" and all the data is starting on the second page. I am sure I didn't interpret your suggestion correctly. I am not sure if I need another page-sequence to accommodate the single-page-master-reference. Do I need to reference any of the master-references (...page-first or ...page-rest) from page-sequence-master in the fo:flow flow-name? Thanks again! ~S. Egrub <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="Insrt-body-page-first" page-height="{$doc_height}" page-width="{$doc_width}" margin-top="0.13in" margin-bottom="0.25in" margin-left="0.45in" margin-right="0.45in"> <!--++ Establish the output area(s) language pages ++--> <fo:region-body region-name="Insrt-pgbody" margin-top="0.3in" margin-bottom="0.5in" column-count="2" background-image="watermark.eps"/> <fo:region-before region-name="lang-pg-ct" extent="0.75in" /> </fo:simple-page-master> <fo:simple-page-master master-name="Insrt-body-page-rest" page-height="{$doc_height}" page-width="{$doc_width}" margin-top="0.13in" margin-bottom="0.25in" margin-left="0.45in" margin-right="0.45in"> <fo:region-body region-name="Insrt-pgbody" margin-top="0.3in" margin-bottom="0.5in" column-count="2" background-image="watermark.eps"/> <fo:region-before region-name="lang-pg-ct" extent="0.75in" /> <fo:region-after region-name="Col_CpyRght-Footer" extent="0.45in"/> </fo:simple-page-master> <fo:page-sequence-master master-name="Insrt-body-page"> <fo:single-page-master-reference master-reference="Insrt-body-page-first"/> <fo:repeatable-page-master-reference master-reference="Insrt-body-page-rest"/> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="Insrt-body-page"> <fo:static-content flow-name="Col_CpyRght-Footer"> <fo:retrieve-marker retrieve-class-name="cpy-footer" retrieve-position="first-starting-within-page" retrieve-boundary="document"/> </fo:static-content> <fo:static-content flow-name="lang-pg-ct"> <fo:block space-before="10.2in" text-align="center" font-size="{$p-font_Size}"> <fo:page-number/> <fo:basic-link internal-destination="{generate-id(/)}"> <fo:page-number-citation ref-id="{generate-id(/)}"/> </fo:basic-link> </fo:block> </fo:static-content> <fo:flow flow-name="Insrt-pgbody"> <fo:block><!--ONE COL 8.5 X 11--> <xsl:apply-templates /> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> --- On Mon, 8/31/09, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > From: G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> > Subject: Re: [xsl] Starting Initial Page Number on Page Two > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Date: Monday, August 31, 2009, 7:50 PM > At 2009-08-31 14:09 -0700, siarom > egrub wrote: > > I have an issue where the initial page number is > starting on page one. The requirement is for the page number > to start on page two (starting with the number "2"). In my > current output, the page number is starting on page one > (starting with the number "1"). I had to start the FO > page-sequence immediately after the FO layout-master-set > because the documents are in multiple languages and each > language have to flow one after the other and not start on a > new page. How can I get the initial page number toB > start on the second page and start counting with number > b2b? > > By creating a page-sequence-master that orders a page > geometry that does not expose the page number, followed by a > page geometry that does expose the page number. > > Based on your posted XSLT, it might be something along the > lines of the following (note how there is no region-after in > the first page geometry): > > B B B B <fo:layout-master-set> > B B B B B <fo:simple-page-master > master-name="Insrt-body-page-first" > page-height="{$doc_height}" page-width="{$doc_width}" > margin-top="0.13in" margin-bottom="0.25in" > margin-left="0.45in" margin-right="0.45in"> > B B B B B <!--++ Establish the > output area(s) language pages ++--> > B B B B B <fo:region-body > region-name="Insrt-pgbody" margin-top="0.3in" > margin-bottom="0.5in" column-count="2" > background-image="watermark.eps"/> > B B B B B > B B B <fo:region-before > region-name="lang-pg-ct" extent="0.75in" /> > B B B </fo:simple-page-master> > B B B B B <fo:simple-page-master > master-name="Insrt-body-page-rest" > page-height="{$doc_height}" page-width="{$doc_width}" > margin-top="0.13in" margin-bottom="0.25in" > margin-left="0.45in" margin-right="0.45in"> > B B B B B <!--++ Establish the > output area(s) language pages ++--> > B B B B B <fo:region-body > region-name="Insrt-pgbody" margin-top="0.3in" > margin-bottom="0.5in" column-count="2" > background-image="watermark.eps"/> > B B B B B > B B B <fo:region-before > region-name="lang-pg-ct" extent="0.75in" /> > B B B B B > B B B <fo:region-after > region-name="Col_CpyRght-Footer" extent="0.45in"/> > B B B </fo:simple-page-master> > B B B <fo:page-sequence-master > master-name="Insrt-body-page"> > B B B B > <fo:single-page-master-reference > B B B B B > B B B master-reference="Insrt-body-page-first"/> > B B B B > <fo:repeatable-page-master-reference > B B B B B > B B B master-reference="Insrt-body-page-rest"/> > B B B </fo:page-sequence-master> > B B B </fo:layout-master-set> > > I hope this helps. > > . . . . . . . . . Ken > > -- > Interested in these classes?B http://www.CraneSoftwrights.com/s/i/ > Crane Softwrights Ltd.B B B B B http://www.CraneSoftwrights.com/s/ > Training tools: Comprehensive interactive XSLT/XPath > 1.0/2.0 video > Video lesson:B B http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 > Video overview:B http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 > G. Ken HolmanB B B B B B > B B B B mailto:gkholman@xxxxxxxxxxxxxxxxxxxx > Male Cancer Awareness Nov'07B http://www.CraneSoftwrights.com/s/bc > Legal business disclaimers:B http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] push HTML, pull data, Vyacheslav Sedov | Thread | Re: [xsl] Starting Initial Page Num, G. Ken Holman |
Re: [xsl] push HTML, pull data, Vyacheslav Sedov | Date | [xsl] passing several external argu, Manuel Souto Pico |
Month |