]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug #516227: segmentedlist/titles
authorNorman Walsh <ndw@nwalsh.com>
Wed, 13 Mar 2002 18:29:22 +0000 (18:29 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 13 Mar 2002 18:29:22 +0000 (18:29 +0000)
xsl/html/lists.xsl

index 74ccbd985ce83918fed5195892780ae2ad3b7235..44c6d02af55f7fd0fa2994f69644fb9a597a6907 100644 (file)
     </xsl:call-template>
   </xsl:variable>
 
-  <xsl:call-template name="anchor"/>
+  <div class="{name(.)}">
+    <xsl:call-template name="anchor"/>
 
-  <xsl:choose>
-    <xsl:when test="$presentation = 'table'">
-      <xsl:apply-templates select="." mode="seglist-table"/>
-    </xsl:when>
-    <xsl:when test="$presentation = 'list'">
-      <xsl:apply-templates/>
-    </xsl:when>
-    <xsl:when test="$segmentedlist.as.table != 0">
-      <xsl:apply-templates select="." mode="seglist-table"/>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:apply-templates/>
-    </xsl:otherwise>
-  </xsl:choose>
+    <xsl:choose>
+      <xsl:when test="$presentation = 'table'">
+        <xsl:apply-templates select="." mode="seglist-table"/>
+      </xsl:when>
+      <xsl:when test="$presentation = 'list'">
+        <xsl:apply-templates/>
+      </xsl:when>
+      <xsl:when test="$segmentedlist.as.table != 0">
+        <xsl:apply-templates select="." mode="seglist-table"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </div>
 </xsl:template>
 
 <xsl:template match="segmentedlist/title">
     </xsl:call-template>
   </xsl:variable>
 
-  <xsl:apply-templates select="title" mode="seglist-table"/>
+  <xsl:apply-templates select="title"/>
+
   <table border="0">
     <xsl:if test="$list-width != ''">
       <xsl:attribute name="width">