This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: making calculations in XSL


> <?xml version="1.0">
> <startmeup>
> <number>1</number>
> <number>2</number>
> <number>...</number>
> .
> .
> .
> </startmeup>
> 
> What I need is to sum the numbers: 1 + 2 + all the following 
> values of the
> <number></number>. 

<xsl:template match="startmeup">
   Total is: <xsl:value-of select="sum(number)"/>
</xsl:template>

Mike K


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]