]> granicus.if.org Git - docbook-dsssl/commitdiff
Output anchors for procedures and steps
authorNorman Walsh <ndw@nwalsh.com>
Thu, 3 May 2001 21:03:41 +0000 (21:03 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 3 May 2001 21:03:41 +0000 (21:03 +0000)
xsl/html/lists.xsl

index 095ad5940362f4a32fe64481885156bf2ba51d55..a9d207ee5f8821af1c2aec08691f9daa814e5f95 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="procedure">
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
   <div class="{name(.)}">
+    <a name="{$id}"/>
     <xsl:if test="title">
       <xsl:apply-templates select="title" mode="procedure.title.mode"/>
     </xsl:if>
 </xsl:template>
 
 <xsl:template match="step">
-  <li><xsl:apply-templates/></li>
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
+  <li>
+    <a name="{$id}"/>
+    <xsl:apply-templates/>
+  </li>
 </xsl:template>
 
 <xsl:template match="step/title">