]> granicus.if.org Git - docbook-dsssl/commitdiff
Make title a link
authorNorman Walsh <ndw@nwalsh.com>
Thu, 7 Feb 2002 17:46:34 +0000 (17:46 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 7 Feb 2002 17:46:34 +0000 (17:46 +0000)
xsl/fo/autotoc.xsl

index 1e1497d35cc2090dfc7024a6467bac6ef0389d9a..1f10eba028afadb6edd32d75fa208ee2b0b489b0 100644 (file)
             end-indent="{$toc.indent.width}pt"
             last-line-end-indent="-{$toc.indent.width}pt">
     <fo:inline keep-with-next.within-line="always">
-      <xsl:if test="$label != ''">
-        <xsl:copy-of select="$label"/>
-        <xsl:value-of select="$autotoc.label.separator"/>
-      </xsl:if>
-      <xsl:apply-templates select="." mode="title.markup"/>
+      <fo:basic-link internal-destination="{$id}">
+        <xsl:if test="$label != ''">
+          <xsl:copy-of select="$label"/>
+          <xsl:value-of select="$autotoc.label.separator"/>
+        </xsl:if>
+        <xsl:apply-templates select="." mode="title.markup"/>
+      </fo:basic-link>
     </fo:inline>
     <fo:inline keep-together.within-line="always">
       <xsl:text> </xsl:text>