Excuse the simplicity of this problem, but it's driving me crazy. I'm
trying to sum the Total to element vagas but it only reapet the
values, I wish to show the Total values. Please!!!
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="referencias" select="//referencia" />
<xsl:template match="/">
<html>
</html>
<h2>Agrupando disciplinas por demanda bibliografica (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/>
<xsl:for-each select="$referencias[isbn=$isbn]">
<xsl:sort select="../../../@name" order="ascending" />
<xsl:sort select="../../descricao" order="ascending" />
<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: ---vagas---> here is my problem--
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
--~------------------------------------------------------------------
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>
--~--