<?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="/">
<!--给定某个条件的求和-->
<xsl:value-of select="sum(node()//workage[number(text())> 2])"/>|||
<!--选定某些用户来计算工资-->
<xsl:value-of select="sum(node()//workage[userid[text()='0002']])"/>|||
</xsl:template>
</xsl:stylesheet>