This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [DOCBOOK-XSL] footnote in glossary appears twice inHTML footer
- From: Bob Stayton <bobs at caldera dot com>
- To: Jean-Baptiste Quenot <jb dot quenot at caraldi dot com>,docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 03 Jul 2002 22:30:53 -0700
- Subject: Re: DOCBOOK-APPS: [DOCBOOK-XSL] footnote in glossary appears twice inHTML footer
- References: <20020703202151.GB87242@watt.intra.caraldi.com>
On Wed, Jul 03, 2002 at 10:21:51PM +0200, Jean-Baptiste Quenot wrote:
> Hi,
>
> With the following sample document:
>
> ------------------------------------------------------------------------
> <?xml version='1.0' encoding='ISO-8859-15'?>
>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> "/usr/local/share/xml/docbook/4.1.2/docbookx.dtd">
>
> <article>
> <glossary>
> <glossentry>
> <glossterm><foreignphrase>This is a term</foreignphrase></glossterm>
> <glossdef>
> <para><footnote><para>This is a footnote.</para></footnote></para>
> </glossdef>
> </glossentry>
> </glossary>
> </article>
> ------------------------------------------------------------------------
>
> I get:
>
> ------------------------------------------------------------------------
> Table of Contents
>
> Glossary
>
> Glossary
>
> This is a term
>
> [1]
>
>
> ------------
>
> [1] This is a footnote.
>
>
> ------------
>
> [1] This is a footnote.
> ------------------------------------------------------------------------
>
> Notice that the footnote is repeated twice. Should I file a bug report
> on SourceForge? Same output with 1.50 and 1.51.1.
Yes, this is a bug, so please report it on SourceForge.
Only certain elements trigger processing of footnotes
with the 'process.footnotes' template, and
sometimes those elements can be nested, resulting in
footnotes being processed twice. Your article/glossary
is one example, and chapter/refentry is another.
Some element templates need to check its context before calling
process.footnotes.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com