我有xsl文件,我想对没有html的每个循环求和,我不想重复html!
原始代码:
<div id="workgroupDisplay">
<xsl:for-each select="//ININ.People.WorkgroupStats_Workgroup[@name != '___All___']">
<div class="workgroup_column">
<div class="workgroup_title_container">
<div class="depth_overlay"></div>
<div class="workgroup_title">
<xsl:value-of select="./@name"/>
</div>
</div>
<div class="workgroup_data_column">
<div class="current_statistics_row">
<div class="label_container">
<div class="half_divider">
<div class="data_label"><f5>Abandoned Rate</f5></div>
</div>
<div class="half_divider">
<div class="data_label"><f5>Service Level</f5></div>
</div>
</div>
<div class="radial_graph_container">
<div class="half_divider">
<div class="radial_graph abandoned_graph"></div>
</div>
<div class="half_divider">
<div class="radial_graph asa_graph"></div>
</div>
</div>
</div>
<div class="current_statistics_row">
<div class="label_container">
<div class="half_divider">
<div class="data_label">
<f5>Available agents</f5></div>
</div>
<div class="half_divider">
<div class="data_label"><f5>Agents Logged In</f5></div>
</div>
</div>
<div class="value_container">
<div class="half_divider">
<div class="data_value">
<xsl:variable name="available" select="./ININ.Workgroup_NumberAvailableForACDInteractions"/>
<xsl:choose>
<xsl:when test="$available = 'N/A' or $available = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$available" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="half_divider">
<div class="data_value">
<xsl:variable name="loggedIn" select="./ININ.Workgroup_AgentsLoggedInAndActivated"/>
<xsl:choose>
<xsl:when test="$loggedIn = 'N/A' or $loggedIn = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$loggedIn" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</div>
</div>
<div class="current_statistics_row">
<div class="label_container">
<div class="half_divider">
<div class="data_label"><f5>Calls Abandoned</f5></div>
</div>
<div class="half_divider">
<div class="data_label"><f5>Calls Offered</f5></div>
</div>
</div>
<div class="value_container">
<div class="half_divider">
<div class="data_value">
<xsl:variable name="abandoned" select="ININ.Queue_Interval[@name = $WORKGROUP_INTERVAL]/ININ.Workgroup_InteractionsAbandoned"/>
<xsl:choose>
<xsl:when test="$abandoned = 'N/A' or $abandoned = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$abandoned" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="half_divider">
<div class="data_value">
<xsl:variable name="received" select="./ININ.Queue_Interval[@name = $WORKGROUP_INTERVAL]/ININ.Workgroup_InteractionsEntered"/>
<xsl:choose>
<xsl:when test="$received = 'N/A' or $received = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$received" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</div>
</div>
<div class="current_statistics_row">
<div class="label_container">
<div class="half_divider">
<div class="data_label"><f5>Calls Handled</f5></div>
</div>
<div class="half_divider">
<div class="data_label">
<f5>Calls on Queue</f5>
</div>
</div>
</div>
<div class="value_container">
<div class="half_divider">
<div class="data_value">
<xsl:variable name="active" select="./ININ.Queue_Interval[@name = $WORKGROUP_INTERVAL]/ININ.Workgroup_InteractionsAnswered" />
<xsl:choose>
<xsl:when test="$active = 'N/A' or $active = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$active" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="half_divider">
<div class="data_value queue">
<xsl:variable name="queue" select="./ININ.Workgroup_InteractionsWaiting" />
<xsl:choose>
<xsl:when test="$queue = 'N/A' or $queue = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$queue" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</div>
</div>
<div class="current_statistics_row">
<div class="label_container">
<div class="half_divider">
<div class="data_label">Calls on Queue</div>
</div>
<div class="half_divider">
<div class="data_label">Received</div>
</div>
</div>
<div class="value_container">
<div class="half_divider">
<div class="lcw_value"></div>
</div>
<div class="half_divider">
<div class="data_value">
<xsl:variable name="received" select="./ININ.Queue_Interval[@name = $WORKGROUP_INTERVAL]/ININ.Workgroup_InteractionsEntered"/>
<xsl:choose>
<xsl:when test="$received = 'N/A' or $received = 'n/a'">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$received" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</div>
</div>
</div>
</div>
</xsl:for-each>
我希望它看起来像这样
0 0 0 0 0 0 0 //开始 放弃率 服务级别 可用代理商 代理登录 //所有可用值 //所有已登录的值 放弃的通话 提供的电话 //所有废弃的值 //所有收到的值 来电处理 通话队列 //所有活动的值 //所有队列的值 通话队列 已收到 //所有收到的值2 //end
</div>
</div>
我想对每个循环的xsl值求和,并且不重复视图 有人可以帮我