|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to add
Hi,
> is it possible to add the contents of two different tags in xml to
> one through xsl.
> like if xml is
> <score>
> <first match>75 </first match>
> <second match> 75</second match>
> further matches .....
> </score>
>
>
> how can we get output like
>
> <score>
> <total score> here the addition of scores in all matches
> </total score>
> </score>
<xsl:template match="score">
<xsl:copy>
<total>
<xsl:value-of select="sum(*)" />
</total>
</xsl:copy>
</xsl:template>
Santtu
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








