Thanks for the info. However, I am not making the connection on how I can use
your suggested examples.
But we haven't seen how the template rule is applied.
There is no special application for this template. The snippet/except that I
have posted is my template for "lang" and within this template I have
fo:page-sequence. I do not have an xsl:call-template or apply-templates for
this particular template.
Please let me know if I need to provide more information.
<===XML Snippet===>
<Product...>
<lang langID="EN" language="English" fontFam="Arial">
...
</lang>
<lang langID="FR" language="Français" 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">
<xsl:if test="position() = 1">
<xsl:attribute name="initial-page-number">1</xsl:attribute>
</xsl:if>
<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.
Thanks,
Horace Burke
--- On Wed, 3/4/09, Florent Georges <lists(_at_)fgeorges(_dot_)org> wrote:
From: Florent Georges <lists(_at_)fgeorges(_dot_)org>
Subject: Re: [xsl] Starting Initial Page Number on Page Three
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Wednesday, March 4, 2009, 3:04 AM
Christopher R. Maden wrote:
Hi,
<xsl:if test="position() = 1">
<xsl:attribute
name="initial-page-number">1</xsl:attribute>
</xsl:if>
Easy!
But we haven't seen how the template rule is applied.
So
depending on this and on the real input format, maybe he
would
need instead:
<xsl:if
test="empty(preceding-sibling::lang)">
...
But that's hard to tell with the excerpts we got so
far.
Regards,
--
Florent Georges
http://www.fgeorges.org/
--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--