#123 Do not output glossterm link if glossentry is not available

closed-fixed
XSL (122)
5
2006-05-23
2005-02-18
Camille Bégnis
No

That mis notably useful when in a modular environment
some documents include the glossary, while others not.

the glossterm template head might be changed in this way:

<xsl:template match="glossterm" name="glossterm">
<xsl:param name="firstterm" select="0"/>

<xsl:choose>
<xsl:when test="($firstterm.only.link = 0 or
$firstterm = 1) and @linkend">
<xsl:variable name="targets"
select="key('id',@linkend)"/>
<xsl:variable name="target" select="$targets[1]"/>

<xsl:choose>
<xsl:when test="$target">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties">
<xsl:call-template name="inline.italicseq"/>
</fo:basic-link>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="inline.italicseq"/>
</xsl:otherwise>
</xsl:choose>

</xsl:when>

Discussion

  • Robert Stayton
    Robert Stayton
    2006-05-08

    • assigned_to: nobody --> bobstayton
    • status: open --> pending-fixed
     
  • Robert Stayton
    Robert Stayton
    2006-05-08

    Logged In: YES
    user_id=193218

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
  • Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-fixed --> closed-fixed