Subject: Re: [xsl] XSL-FO to generate Footnotes From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 01 Oct 2012 10:14:38 -0400 |
On a project I'm working at, I want to generate footnotes. So far, I know how to autonumber the footnotes, and have the footnotes themselves a different styling. But I can't get them on the bottom of a page. The code I have so far looks like this:
As far as I can see, this is the proper way to render footnotes.
We use the XSL-FO processor from Altsoft (http://bit.ly/JFV1MI) which should be capable of rendering footnotes.
Because I'm really new to XSL-FO, having no real programming experience, and just learn by doing, it might be that I'm missing some important part in the above example.
So if anyone would be so kind to point in the right direction, it would be very appreciated.
<?xml version="1.0" encoding="utf-8"?><!--foot.fo--> <!DOCTYPE root [ <!ENTITY page-width "210mm"> <!ENTITY page-height "297mm"> <!ENTITY margin-top "15mm"> <!ENTITY margin-bottom "15mm"> <!ENTITY margin-left "15mm"> <!ENTITY margin-right "15mm"> <!ENTITY before-extent "13mm"> <!ENTITY after-extent "13mm"> ]> <root font-family="Times" font-size="20pt" xmlns="http://www.w3.org/1999/XSL/Format">
<layout-master-set> <simple-page-master master-name="frame" page-height="&page-height;" page-width="&page-width;" margin-top="&margin-top;" margin-bottom="&margin-bottom;" margin-left="&margin-left;" margin-right="&margin-right;"> <region-body region-name="frame-body" margin-top="&before-extent;" margin-bottom="&after-extent;"/> <region-after extent="&after-extent;"/> </simple-page-master> </layout-master-set>
<static-content flow-name="xsl-region-after"> <block text-align="center"><page-number/></block> </static-content> <static-content flow-name="xsl-footnote-separator"> <block font-style="italic">Footnotes</block> </static-content>
<flow flow-name="frame-body" font-size="40pt"> <block>This is a test</block> <block>This is a<footnote> <inline baseline-shift="15pt" font-size="20pt">1</inline> <footnote-body> <block font-size="20pt"> <inline baseline-shift="5pt" font-size="15pt" >1 </inline>This is a footnote with a very long paragraph so that it will (hopefully) wrap onto multiple lines in the footnote area. </block> </footnote-body> </footnote> test</block> <block>This is a test</block> <block>This is a<footnote> <inline baseline-shift="15pt" font-size="20pt">2</inline> <footnote-body> <block font-size="20pt"> <inline baseline-shift="5pt" font-size="15pt" >2 </inline>This is another footnote, once again with a very long paragraph so that it will (hopefully) wrap onto multiple lines in the footnote area. </block> </footnote-body> </footnote> test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block>
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL-FO to generate Footno, DaveP | Thread | Re: [xsl] getting all values from a, Andrew Welch |
Re: [xsl] getting all values from a, Michael Kay | Date | [xsl] Decoding HTML tags, Karl Stubsjoen |
Month |