Subject: Re: [xsl] Starting Initial Page Number on Page Three From: Horace Burke <xmlmarkup@xxxxxxxxx> Date: Wed, 4 Mar 2009 17:27:05 -0800 (PST) |
Florent, 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. I do have a template matching "/" -- it contains the page layouts and default apply-templates. I added more excerpts. <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> ..... <fo:simple-page-master master-name="Insrt-body-page" page-height="{$doc_height}" page-width="{$doc_width}" margin-top="0.3in" margin-bottom="0.2in" margin-left="0.45in" margin-right="0.45in"> .... </fo:simple-page-master> .... </fo:layout-master-set> <!--++ Display entire data in the inserts ++--> <xsl:apply-templates/> </fo:root> </xsl:template> <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 for all your help. Horace Burke --- On Wed, 3/4/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: Wednesday, March 4, 2009, 4:24 PM > Horace Burke wrote: > > Hi, > > > > 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. > > It is hard to tell from your message what you tried and > what was the (wrong) result. If the template is never > applied nor called, then it is never evaluated, and does > not > produce anything in the result tree. But maybe it is > applied by default rules. > > I think this is a good practice when beginning with XSLT > to always write a template matching "/" to view > more easily > how the processing walks the input tree. > > Have you tried the modified template in your last email? > If you did, what was the result and how was it wrong? > > 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, G. Ken Holman |
Re: [xsl] Starting Initial Page Num, Florent Georges | Date | Re: [xsl] Starting Initial Page Num, G. Ken Holman |
Month |