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


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: Question about glossaries


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


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