星期四, 二月 19, 2004

如何得到XSLT节点的set求和

<a href="http://localhost/payroll/frame.jsp">frame</a>: "<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='no'/>
<xsl:template match='/'>
here:
<xsl:for-each select='node()'>
<xsl:value-of select='sum(row/workage)'/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
"