Hi, there are months I'm trying to understand why iti occurs :
I'd like to sum the element grouped , but it displays only one
single value under another and not the total. Why ?? Would it be by
the generate-id use??? Can analyse my X
<xsl:template match="/">
<html>
</html>
<h2>Grouping disciplines by Titles(ISBN) </h2>
<xsl:for-each select="$referencias">
<xsl:sort select="sobrenome-autor" order="ascending" />
<xsl:variable name="isbn" select="isbn" />
<xsl:if test="generate-id(.)=generate-id($referencias[isbn=$isbn])">
<b><xsl:value-of select='sobrenome-autor'/></b>, <xsl:value-of
select='nome-autor'/>. <xsl:value-of
select='titulo'/>. <xsl:value-of
select='ano'/>. <xsl:value-of select="isbn" /><br/>
 </h3>
<table width="95%">
<tr>
<th>CURSO</th>
<th>DISCIPLINA</th>
<th>CODIGO</th>
<th>VAGAS</th>
<th>EXEMPLAR</th>
<th>NIVEL</th>
</tr>
<xsl:for-each select="$referencias[isbn=$isbn]">
<xsl:sort select="../../../@name" order="ascending" />
<xsl:sort select="../../descricao" order="ascending" />
<tr>
<ul>
<th><xsl:value-of select="../../../@name"/></th>
<th><xsl:value-of select="../../descricao"/></th>
<th><xsl:value-of select="../../@id"/></th>
<th><xsl:value-of select="../../vagas"/></th>
Total: <xsl:value-of select="sum(../../vagas)" /> <--Here is my problem
it doesn't display the total, only appear the value to a single element -->
</ul> <br/>
</tr>
</xsl:for-each>
</table>
</xsl:if><br/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Marcos Hercules
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--