]> granicus.if.org Git - docbook-dsssl/commitdiff
Added class attributes for segmentedlist elements for table presentation.
authorBob Stayton <bobs@sagehill.net>
Sat, 14 Aug 2004 08:13:27 +0000 (08:13 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 14 Aug 2004 08:13:27 +0000 (08:13 +0000)
xsl/html/lists.xsl

index a26b505bb58cbf94dbd140743c5e4b502d451a8a..dc09ebd3cec61e6ab2e2d6fd9ad68b96f01dea0e 100644 (file)
       </xsl:attribute>
     </xsl:if>
     <thead>
-      <tr>
+      <tr class="segtitle">
         <xsl:call-template name="tr.attributes">
           <xsl:with-param name="row" select="segtitle[1]"/>
           <xsl:with-param name="rownum" select="1"/>
     <xsl:number from="segmentedlist" count="seglistitem"/>
   </xsl:variable>
 
-  <tr>
+  <tr class="seglistitem">
     <xsl:call-template name="tr.attributes">
       <xsl:with-param name="rownum" select="$seglinum + 1"/>
     </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="seg" mode="seglist-table">
-  <td><xsl:apply-templates/></td>
+  <td class="seg"><xsl:apply-templates/></td>
+</xsl:template>
+
+<xsl:template match="seg[1]" mode="seglist-table">
+  <td class="seg">
+    <xsl:call-template name="anchor">
+      <xsl:with-param name="node" select="ancestor::seglistitem"/>
+    </xsl:call-template>
+    <xsl:apply-templates/>
+  </td>
 </xsl:template>
 
 <!-- ==================================================================== -->