Subject: Re: [xsl] More addition questions From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 10 Oct 2007 22:18:02 +0100 |
> 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. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] More addition questions, Chaudhary, Harsh | Thread | RE: [xsl] More addition questions: , Chaudhary, Harsh |
[xsl] More addition questions, Chaudhary, Harsh | Date | Re: [xsl] Windows Batchfile calling, Deborah Pickett |
Month |