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: Summing a Calculation


It does work but does not answer the original problem, which needs
sum(quantity*price).

Tom P

[<bryan.s.schnabel@exgate.tek.com>]

> This works:
>
> <xsl:template match="order">
>     <b>
>       <xsl:text>Total Price: </xsl:text>
>       <xsl:value-of select="sum(item/price)"/>
>     </b>
> </xsl:template>
>



 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]