Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Starting Initial Page Number on Page Three

From: Horace Burke <xmlmarkup@--------->
To:
Date: 3/4/2009 12:48:00 AM
Hi All,

I want to start initial page number as one "1" on page three of PDF documents
I am creating using XSL-FO style. There is a Title page (first page) and TOC
(second page). The documents have multiple languages (represented by "lang"
elements/tags in XML snippet below). When I add initial-page-number="1"
property to fo:page-sequence it starts page number on each new language page
and produces multiple #1's in on the TOC page for each language.

Does anyone know how I can start initial page number as one on page three and
have it counts continuously to the end of the document?

I am using Arbortext Epic/E3 for rendering.


<===XML Snippet===>

<Product...>

    <lang langID="EN" language="English" fontFam="Arial">
      ...
    </lang>
    <lang langID="FR" language="Frangais" fontFam="Arial">
      ...
    </lang>
    <lang langID="DE" language="Deutsch" fontFam="Arial">
      ...
    </lang>
    <lang langID="IT" language="Italiano" fontFam="Arial">
      ...
    </lang>

</Product>

<===XSL-FO Snippet===>

<xsl:template match="lang">
   <fo:page-sequence master-reference="Insrt-body-page">

      <fo:static-content flow-name="lang-pg-ct">
      	 <fo:block 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="Prod-pgbody" font-family="{$font_Fam}">
        <fo:block id="{generate-id(.)}">
	   <xsl:apply-templates/>
        </fo:block>
      </fo:flow>
   </fo:page-sequence>

</xsl:template>


Thanks in advance for your help.

Regards,
Horace Burke


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