]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug #983042 to make segmentedlist HTML markup more semantic
authorBob Stayton <bobs@sagehill.net>
Sat, 14 Aug 2004 07:22:48 +0000 (07:22 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 14 Aug 2004 07:22:48 +0000 (07:22 +0000)
and available to CSS styles.

xsl/html/lists.xsl

index 8c528bd54a2d339ade0cac75452397a03da883ee..72065eac0ce5df9cf9635a805bc443659fd5e474 100644 (file)
 </xsl:template>
 
 <xsl:template match="segmentedlist/title">
-  <p><b><xsl:apply-templates/></b></p>
+  <div class="title">
+    <strong><span class="title"><xsl:apply-templates/></span></strong>
+  </div>
 </xsl:template>
 
 <xsl:template match="segtitle">
 </xsl:template>
 
 <xsl:template match="seglistitem">
-  <xsl:apply-templates/>
+  <div class="seglistitem">
+    <xsl:apply-templates/>
+  </div>
 </xsl:template>
 
 <xsl:template match="seg">
      you'll get something odd...maybe an error
   -->
 
-  <p>
-    <b>
-      <xsl:apply-templates select="$segtitles[$segnum=position()]"
-                           mode="segtitle-in-seg"/>
-      <xsl:text>: </xsl:text>
-    </b>
+  <div class="seg">
+    <strong>
+      <span class="segtitle">
+        <xsl:apply-templates select="$segtitles[$segnum=position()]"
+                             mode="segtitle-in-seg"/>
+        <xsl:text>: </xsl:text>
+      </span>
+    </strong>
     <xsl:apply-templates/>
-  </p>
+  </div>
 </xsl:template>
 
 <xsl:template match="segmentedlist" mode="seglist-table">