Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: I need to calculate sum of product of elements [Thread Next] Re: I need to calculate sum of product of elementsTo: NULL Date: 12/16/2007 1:36:00 PM khalil_mi@h... wrote: > <xsl:value-of select="sum(for $line in csv/line[ choose here the range > between 2 and 4 ] return $line/number[1] * $line/number[3])"/> Use position() e.g. csv/line[position() > 1 and position() < 5] respectively inside an XSLT document escape the characters e.g. <xsl:value-of select="sum(for $line in csv/line[position() > 1 and position() < 5] return $line/number[1] * $line/number[3])"/> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
