This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Question about glossaries
- From: Bob Stayton <bobs at caldera dot com>
- To: Giuseppe Greco <giuseppe dot greco at bluewin dot ch>,DocBook <docbook at lists dot oasis-open dot org>
- Date: Thu, 03 Oct 2002 09:24:29 -0700
- Subject: Re: DOCBOOK: Question about glossaries
- References: <1033666647.1231.7.camel@gonzo.lan>
On Thu, Oct 03, 2002 at 07:37:27PM +0200, Giuseppe Greco wrote:
> Why the content of the <acronym> elements are not rendered
> when generating a glossary document?
>
> For instance, I wrote something like this:
>
> <glossdiv id="A">
> <title>A</title>
>
> <glossentry id="myterm">
> <glossterm>My Term</glossterm>
> <acronym>My Acronym</acronym> <!-- This is not rendered -->
> <glosdef>bla bla ...</glosdef>
> </glossentry>
> </glossdiv>
The XSL stylesheets have null templates for these elements:
<xsl:template match="glossentry/acronym">
</xsl:template>
<xsl:template match="glossentry/abbrev">
</xsl:template>
<xsl:template match="glossentry/revhistory">
</xsl:template>
That explains why you don't get any output for acronym, but
it doesn't explain why the templates are null. Perhaps
these elements are thought of as metadata rather than
printable content.
In any case, it you have a customization layer, you can
output your acronym by adding:
<xsl:template match="glossentry/acronym">
<xsl:apply-templates/>
</xsl:template>
You'll probably want to add some formatting, though.
--
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