]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #1031851. Target of link is computed by href.target template.
authorJirka Kosek <jirka@kosek.cz>
Sun, 24 Oct 2004 09:04:08 +0000 (09:04 +0000)
committerJirka Kosek <jirka@kosek.cz>
Sun, 24 Oct 2004 09:04:08 +0000 (09:04 +0000)
xsl/html/glossary.xsl

index 0a5c1e761fd2f4f3dfec7c9634f2fe4e57e8cfdd..c196805badca8b1160417a232bbb9aa32849382e 100644 (file)
@@ -193,7 +193,12 @@ GlossEntry ::=
       </xsl:call-template>
       <xsl:choose>
         <xsl:when test="$target">
-          <a href="#{@otherterm}">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="object" select="$target"/>
+              </xsl:call-template>
+            </xsl:attribute>
             <xsl:apply-templates select="$target" mode="xref-to"/>
           </a>
         </xsl:when>
@@ -235,7 +240,12 @@ GlossEntry ::=
 
   <xsl:choose>
     <xsl:when test="$target">
-      <a href="#{@otherterm}">
+      <a>
+        <xsl:attribute name="href">
+          <xsl:call-template name="href.target">
+            <xsl:with-param name="object" select="$target"/>
+          </xsl:call-template>
+        </xsl:attribute>
         <xsl:apply-templates select="$target" mode="xref-to"/>
       </a>
     </xsl:when>