This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [DOCBOOK-XSL] footnote in glossary appears twice inHTML footer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]