xslt rowspan,该如何处理

xslt rowspan
本帖最后由 b327114069 于 2011-12-13 12:49:20 编辑
            <tr>
              <td rowspan="4" colspan="2" class="td_title">社会功能情况</td>
            </tr>
       
              <xsl:for-each select="ClinicalDocument/component/section/code[@code='DM_SMI_SocialFunction']/entry">
                <tr>
                  <td colspan="3">
                    <xsl:value-of select='Social_Function_Name'/>
                  </td>
                  <td class="td_content" colspan="3">
                    <xsl:value-of select='Social_Function_Eval_Name'/>
                  </td>
                </tr>
              </xsl:for-each>


rowspan="4"   应该要获取foreach循环的次数  不知道要怎么控制。

表格如以下形式,右边是遍历获得具体不确定遍历多少行。

        |xxx|yyy
社会情况|zzz|eee
       |hhh|zzz
------解决方案--------------------
不大明白你的意思。。
rowspan="4" colspan="2" 这个只是控制表格的行和列