Subject: Re: [xsl] XSL-FO footnotes only on the last page From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Sat, 30 Nov 2002 18:31:46 +0100 |
Lee, Insoo wrote: ...
It correctly recognizes the first page, but from there on, it uses 'anypage' simple-page-master for all following pages. It almost seems like page-position="any" is not recognizing the last page....
No surprise: "any" matches any page, and if a matching conditional page master reference is found, further searching stops, so that the following page master reference is never considered.
Anyway, I suppose you are using FOP? In this case, "last" is not really implemented but matches always. Properly implementing "last" is really problematic, because you know you are on the last page only after you formatted it, so all the formatting has to be rolled back and redone with the page master for "last" (wich may cause the page to be *not* the last page...)
As for your original problem, the solution has nothing to do with conditional page masters. Instead of generating fo:footnote elements, generate regular fo:block elements at the end of the flow, usually with moded templates: <xsl:template match="document"> <fo:flow> <xsl:apply-templates/> <!-- endnote separator --> <fo:block><fo:leader leader-pattern="rule"/></fo:block> <xsl:apply-templates select=".//footnote" mode="endnote"/> </fo:flow> </xsl:template> <xsl:template match="footnote"> <fo:wrapper font-size="8pt" vertical-align="super"> <xsl:number count="footnote"/> </fo:wrapper> </xsl:template> <xsl:template match="footnote" mode="endnote"> <fo:block font-size="8pt"> <xsl:number count="footnote"/> <xsl:text>: </xsl:text> <xsl:apply-templates/> </fo:block> </xsl:template> (Beware: untested)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL-FO footnotes only on , Lee, Insoo | Thread | Re: [xsl] XSL-FO footnotes only on , G. Ken Holman |
RE: [xsl] parsing ECB xml file, Michael Kay | Date | Re: [xsl] parsing ECB xml file, David Silcott |
Month |