xsl-list
[Top] [All Lists]

Re: [xsl] More addition questions

2007-10-10 14:18:45

I am using Xalan and XSLT 1.0 for the following

since xalan supports exslt:node-set I'd use that which will allow you to
use sum() on the numbers you have already generated.

<top>
<xsl:variable name="x">
what you have..
</xsl:variable>
<xsl:copy-of select="$x"/>
<sumOfAGroup>
 <xsl:for-each
select="exslt:node-set($x)/top/sumsForEachElementByKeyMultipliedByPosition">
  <sum><xsl:value-of select="sum(element)"/></sum>
</sumOfAGroup>
</xsl:for-each>
</top>


David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--