OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Footnote not shown when used under itemizedlist tag.


On Feb 3, 2008 9:07 AM, Xuan Ngo <xuanngolist@yahoo.ca> wrote:
> Footnote not shown when used under itemizedlist tag. Is this a bug?
> I'm using FOP v0.94 and Docbook 1.73.2.

Perhaps a FOP bug [yes, see bottom]?

The footnote is certainly there in the XSL-FO outputted by the stylesheets:
$ xsltproc ~/scratch/docbook-xsl-snapshot/fo/docbook.xsl ml.xml |
xmllint --format - | grep -A 1 -B 1 "Footnote under Itemizedlist"
Making portrait pages on USletter paper (8.5inx11in)
              <fo:block>
                <fo:block>bla bla bla
itemizedlist<fo:footnote><fo:inline><fo:inline font-size="75%"
font-weight="normal" font-style="normal"
baseline-shift="super">2</fo:inline></fo:inline><fo:footnote-body
font-family="serif,Symbol,ZapfDingbats" font-size="8pt"
font-weight="normal" font-style="normal" text-align="justify"
start-indent="0pt" text-indent="0pt" hyphenate="true"
wrap-option="wrap"
linefeed-treatment="treat-as-space"><fo:block><fo:inline
font-size="75%" font-weight="normal" font-style="normal"
baseline-shift="super">2</fo:inline>Footnote under
Itemizedlist</fo:block></fo:footnote-body></fo:footnote>
                   </fo:block>

...and the resulting FO renders fine via AntennaHouse's XSLFormatter.
This makes me think it's not a stylesheet bug.

FOP warns:
$ fop -fo ml.fo ml.fop.pdf
Feb 3, 2008 11:25:59 AM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en
...and gives a PDF without the footnote, but with the footnote marker.

If we set fop1.extensions
(http://docbook.xml-doc.org/snapshots/xsl/doc/fo/fop1.extensions.html):
$ xsltproc -o ml.fo --stringparam fop1.extensions 1
~/scratch/docbook-xsl-snapshot/fo/docbook.xsl ml.xml && fop -fo ml.fo
ml.fop.pdf
... we get the same "2" in the text but no footnote at the bottom.

So, I guess it must be a FOP bug (sorry, not a regular FOP user, so I
don't know more).


HTH,
Keith


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]