Subject: Re: [xsl] Starting Initial Page Number on Page Three From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 04 Mar 2009 20:48:27 -0500 |
Yes, I tried my modified template. It didn't change anything. The page number still starts at three "3" -- I am sure I am doing something wrong.
The template is applied by default rules.
<xsl:template match="some-element"> <xsl:apply-templates/> </xsl:template>
<some-element> <lang> ....stuff.... </lang> <lang> ....stuff.... </lang> <lang> ....stuff.... </lang> </some-element>
<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>
<xsl:template match="some-element"> <xsl:apply-templates select="*"/> </xsl:template>
<xsl:template match="some-element"> <xsl:apply-templates select="lang"/> </xsl:template>
-- XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz 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@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Starting Initial Page Num, Horace Burke | Thread | Re: [xsl] Starting Initial Page Num, Florent Georges |
Re: [xsl] Starting Initial Page Num, Horace Burke | Date | Re: [xsl] Starting Initial Page Num, Florent Georges |
Month |