|
Subject: Re: [xsl] Starting Initial Page Number on Page Three From: Horace Burke <xmlmarkup@xxxxxxxxx> Date: Tue, 3 Mar 2009 20:10:33 -0800 (PST) |
Here are snippets of the XML and FO that I am implementing.
<===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>
--- On Tue, 3/3/09, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> From: Florent Georges <lists@xxxxxxxxxxxx>
> Subject: Re: [xsl] Starting Initial Page Number on Page Three
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date: Tuesday, March 3, 2009, 6:00 PM
> Horace Burke wrote:
>
> > When I add initial-page-number="1" property
> to
> > fo:page-sequence it starts page number one on each new
> > language page and produces multiple #1's in on the
> TOC
> > page for each language.
>
> Then you have to generate the attribute only for the
> first language. I don't remember your input format, but
> that shouldn't be hard to achieve. Post an excerpt if
> you run into difficulties.
>
> Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Starting Initial Page Num, Florent Georges | Thread | Re: [xsl] Starting Initial Page Num, Christopher R. Maden |
| Re: [xsl] Starting Initial Page Num, Florent Georges | Date | Re: [xsl] Starting Initial Page Num, Christopher R. Maden |
| Month |