]> granicus.if.org Git - docbook-dsssl/commitdiff
Check for glossterm.auto.link when linking firstterms; don't output gl. prefix on...
authorNorman Walsh <ndw@nwalsh.com>
Tue, 28 Jan 2003 01:32:01 +0000 (01:32 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 28 Jan 2003 01:32:01 +0000 (01:32 +0000)
xsl/fo/inline.xsl
xsl/html/inline.xsl

index 8eb9ca49e1cf71933d689418173e16dce60716da..f3b7bbc393c4886c55c8fbe1487fe697fc2a98b1 100644 (file)
 
     <xsl:when test="not(@linkend)
                     and ($firstterm.only.link = 0 or $firstterm = 1)
+                    and ($glossterm.auto.link != 0)
                     and $glossary.collection != ''">
       <xsl:variable name="term">
         <xsl:choose>
         </xsl:when>
         <xsl:otherwise>
           <xsl:variable name="id">
-            <xsl:text>gl.</xsl:text>
             <xsl:choose>
               <xsl:when test="$cterm/@id">
                 <xsl:value-of select="$cterm/@id"/>
index 76b7da0d6699faf20e1752641c87fb670f67a06d..32f5412d4a9a349e38669b641790bf2f10fd16f1 100644 (file)
   <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:when test="not(@linkend)
                     and ($firstterm.only.link = 0 or $firstterm = 1)
+                    and ($glossterm.auto.link != 0)
                     and $glossary.collection != ''">
       <xsl:variable name="term">
         <xsl:choose>
         </xsl:when>
         <xsl:otherwise>
           <xsl:variable name="id">
-            <xsl:text>gl.</xsl:text>
             <xsl:choose>
               <xsl:when test="$cterm/@id">
                 <xsl:value-of select="$cterm/@id"/>