]> granicus.if.org Git - docbook-dsssl/commitdiff
Use tr.attributes
authorNorman Walsh <ndw@nwalsh.com>
Thu, 18 Jul 2002 11:18:26 +0000 (11:18 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 18 Jul 2002 11:18:26 +0000 (11:18 +0000)
xsl/html/lists.xsl

index 1896117dbaa4747d160a0fbdf5d89bc99fa0fcf2..82e153c30dbd4268a2772aa6de6d648934dbe8d7 100644 (file)
     </xsl:call-template>
   </xsl:variable>
   <tr>
+    <xsl:call-template name="tr.attributes">
+      <xsl:with-param name="rownum">
+        <xsl:number from="variablelist" count="varlistentry"/>
+      </xsl:with-param>
+    </xsl:call-template>
+
     <td>
       <xsl:call-template name="anchor"/>
       <xsl:choose>
 
   <xsl:if test="$cell &lt;= count($members)">
     <tr>
+      <xsl:call-template name="tr.attributes">
+        <xsl:with-param name="row" select="$members[1]"/>
+        <xsl:with-param name="rownum" select="(($cell - 1) div $cols) + 1"/>
+      </xsl:call-template>
+
       <xsl:call-template name="simplelist.horiz.row">
         <xsl:with-param name="cols" select="$cols"/>
         <xsl:with-param name="cell" select="$cell"/>
 
   <xsl:if test="$cell &lt;= $rows">
     <tr>
+      <xsl:call-template name="tr.attributes">
+        <xsl:with-param name="row" select="$members[1]"/>
+        <xsl:with-param name="rownum" select="$cell"/>
+      </xsl:call-template>
+
       <xsl:call-template name="simplelist.vert.row">
        <xsl:with-param name="cols" select="$cols"/>
        <xsl:with-param name="rows" select="$rows"/>
     </xsl:if>
     <thead>
       <tr>
+        <xsl:call-template name="tr.attributes">
+          <xsl:with-param name="row" select="segtitle[1]"/>
+          <xsl:with-param name="rownum" select="1"/>
+        </xsl:call-template>
         <xsl:apply-templates select="segtitle" mode="seglist-table"/>
       </tr>
     </thead>
 </xsl:template>
 
 <xsl:template match="seglistitem" mode="seglist-table">
+  <xsl:variable name="seglinum">
+    <xsl:number from="segmentedlist" count="seglistitem"/>
+  </xsl:variable>
+
   <tr>
+    <xsl:call-template name="tr.attributes">
+      <xsl:with-param name="rownum" select="$seglinum + 1"/>
+    </xsl:call-template>
     <xsl:apply-templates mode="seglist-table"/>
   </tr>
 </xsl:template>
   <xsl:choose>
     <xsl:when test="$callout.list.table != 0">
       <tr>
+        <xsl:call-template name="tr.attributes">
+          <xsl:with-param name="rownum">
+            <xsl:number from="calloutlist" count="callout"/>
+          </xsl:with-param>
+        </xsl:call-template>
+
         <td width="5%" valign="top" align="left">
           <xsl:call-template name="anchor"/>
           <xsl:call-template name="callout.arearefs">