Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Starting Initial Page Number on Page Two

From: "G. Ken Holman" <gkholman@----------------.--->
To: xsl-list@-----.------------.---
Date: 8/31/2009 11:51:00 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 
>to  start on the second page and start counting with number “2”?

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):

      <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">
           <!--++ 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: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>

I hope this helps.

. . . . . . . . . Ken

--
Interested in these classes?  http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@C...
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent