]> granicus.if.org Git - docbook-dsssl/commitdiff
Process <link> in no.anchor.mode mode with the same template as <xref>.
authorMauritz Jeanson <mj@johanneberg.com>
Sun, 30 Sep 2007 13:32:02 +0000 (13:32 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sun, 30 Sep 2007 13:32:02 +0000 (13:32 +0000)
Closes bug #1759205 (Empty link in no.anchor.mode mode).

xsl/common/titles.xsl

index 87b9f736cbda2910b3a7c82c1ac7056e2d1464b3..197fe2b00df834588f2331e3bcdd4631e45d61ec 100644 (file)
@@ -671,7 +671,7 @@ title of the element. This does not include the label.
   <!-- nop, suppressed -->
 </xsl:template>
 
-<xsl:template match="xref" mode="no.anchor.mode">
+<xsl:template match="xref|link" mode="no.anchor.mode">
   <xsl:variable name="targets" select="key('id',@linkend)"/>
   <xsl:variable name="target" select="$targets[1]"/>
   <xsl:variable name="refelem" select="local-name($target)"/>