]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug [ 841586 ] id-attibute in firstterm prohibits link to glossary.
authorBob Stayton <bobs@sagehill.net>
Fri, 12 Dec 2003 04:30:47 +0000 (04:30 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 12 Dec 2003 04:30:47 +0000 (04:30 +0000)
xsl/html/inline.xsl

index 8907e6c2d4e38d66fa498735371568546ae68e95..18a2b2fcefc913b30937292657081a2f905a7952 100644 (file)
 <xsl:template match="glossterm" name="glossterm">
   <xsl:param name="firstterm" select="0"/>
 
+  <!-- To avoid extra <a name=""> anchor from inline.italicseq -->
+  <xsl:variable name="content">
+    <xsl:apply-templates/>
+  </xsl:variable>
+
   <xsl:choose>
     <xsl:when test="($firstterm.only.link = 0 or $firstterm = 1) and @linkend">
       <xsl:variable name="targets" select="key('id',@linkend)"/>
           </xsl:call-template>
         </xsl:attribute>
 
-        <xsl:call-template name="inline.italicseq"/>
+        <xsl:call-template name="inline.italicseq">
+          <xsl:with-param name="content" select="$content"/>
+        </xsl:call-template>
       </a>
     </xsl:when>
 
             </xsl:choose>
           </xsl:variable>
           <a href="{$chunkbase}#{$id}">
-            <xsl:call-template name="inline.italicseq"/>
+            <xsl:call-template name="inline.italicseq">
+              <xsl:with-param name="content" select="$content"/>
+            </xsl:call-template>
           </a>
         </xsl:otherwise>
       </xsl:choose>
               </xsl:call-template>
             </xsl:attribute>
 
-            <xsl:call-template name="inline.italicseq"/>
+            <xsl:call-template name="inline.italicseq">
+              <xsl:with-param name="content" select="$content"/>
+            </xsl:call-template>
           </a>
         </xsl:otherwise>
       </xsl:choose>