]> granicus.if.org Git - docbook-dsssl/commitdiff
Output anchors for titles if the titles have ids
authorNorman Walsh <ndw@nwalsh.com>
Wed, 1 Aug 2001 00:42:27 +0000 (00:42 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 1 Aug 2001 00:42:27 +0000 (00:42 +0000)
xsl/common/titles.xsl

index a8e7450c8f9bb5e9c2f1993551446def661a62a4..52dc7038be658eb0df1e289aa9797f113d88e58a 100644 (file)
@@ -44,6 +44,9 @@ title of the element. This does not include the label.
   <xsl:param name="allow-anchors" select="'0'"/>
   <xsl:choose>
     <xsl:when test="$allow-anchors != 0">
+      <xsl:if test="@id">
+        <a name="{@id}"/>
+      </xsl:if>
       <xsl:apply-templates/>
     </xsl:when>
     <xsl:otherwise>