我在 Sharepoint 2010 数据视图中有一个表,其中的列计算如下:
<td>
<xsl:variable name="CurrentYear" select="ddwrt:FormatDateTime(string(ddwrt:Today()),1033,'yyyy')"/>
<xsl:variable name="YearOfWork" select="$thisNode/@Year"/>
<xsl:choose>
<xsl:when test="number($YearOfWork) = number($CurrentYear) - 1">
<xsl:value-of select="number(@_x004a_an116)"/>
</xsl:when>
<xsl:when test="number($YearOfWork) + 1 = number($CurrentYear) - 1">
<xsl:value-of select="number(@_x004a_an1)"/>
</xsl:when>
<xsl:when test="number($YearOfWork) + 2 = number($CurrentYear) - 1">
<xsl:value-of select="number(@_x004a_an1)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="number(0.00)"/>
</xsl:otherwise>
</xsl:choose>
</td>
在列的底部,我想获得列中所有值的总和。有没有办法做到这一点?
提前致谢!