RE: [docbook-apps] glosssee generating ???Title??? for fo output

From
Mauritz Jeanson <>
Date
2006-08-22T15:40:27+00:00
ID
006a01c6c601$3e7b6920$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] glosssee generating ???Title??? for fo output
> -----Original Message-----
> From: Joy Andree 
> 
> When I use the glosssee and glossalso in a glossentry the 
> output is not the content of the glossterm.
> 
> <fo:block>See Also ???TITLE???</fo:block>
> 
> Using the examples from docbook to make sure my ids and 
> otherterms matched up gave me the same results.


Did you by any chance try the examples in TDG for DocBook 5
(http://docbook.org/tdg5/en/html/glossary.html)?

The glossary.xsl stylesheets for HTML and FO take no account of the 'xml:id'
attribute, which replaces 'id' in Docbook 5. In the templates with
match="glossentry/glosssee" and "glossseealso", this is what the "targets"
variable looks like:

<xsl:variable name="targets" select="//node()[@id=$otherterm]"/>

It can be fixed like this:

<xsl:variable name="targets" select="key('id', $otherterm)"/>

/MJ