[xep-support] Order of unique footnotes
krister.wicksell at zert.se
Wed Jun 18 01:22:14 PDT 2008
And thank you for the solution!
S-921 31 Lycksele
Tel. +46 (0)950 132 30
Mobile +46 (0)70 380 86 84
Fax. +46 (0)950 262 30
On Wednesday 18 June 2008 05:43:33 Alexei Gagarinov wrote:
> Hi Krister,
> > You can see on page two in the PDF that the footnotes are in the order
> > they appear in the content file.
> This is the exact behavior prescribed by XSL-FO Specification and the
> only reasonable way of placing footnotes in general.
> A "strange" order of footnote descriptions is any other one, imo.
> > My customer want the footnote to be in number order instead.
> One of the solutions is to try to convince your customer that the
> observed behavior is natural. :)
> Another solution is to reorder footnotes (I mean footnote bodies) on
> XSLT level.
> The main idea is the following:
> 1) Sort the footnote bodies from each page in the desired order and
> place these "fake" footnotes (i.e. footnotes bodies without anchors) on
> the very beginning of each page.
> 2) The actual footnotes should contain only anchors (fo:inline).
> The problem with this approach is that one doesn't know how footnotes
> are split across page boundaries before formatting (due to the nature of
> XSL-FO technology).
> But the above idea along with the RenderX extension for unique footnotes
> provide the desired result:
> Each footnote in the document (optimization: in a page-sequence) have
> its own anchor with the empty body and the sorted list of "fake" bodies
> including its own body.
> The bodies should carry the correct @id attribute, of course.
> All "superfluous" bodies will be merged with each other during
> formatting and you will see the unique footnotes only.
> The sorted list of "fake" bodies (of the current and all subsequent -
> according to the document order - footnotes) on each footnote makes it
> unimportant where a page breaks.
> I attached the modified XSL file with the described approach.
> The XSLT code is not optimized and not elegant, but it works. :)
> Best regards,
> Alexei Gagarinov
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
More information about the Xep-support