[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO footnotes only on the last page

Subject: Re: XSL-FO footnotes only on the last page
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 30 Nov 2002 18:31:46 +0100
xsl fo footnote
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)

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.