Subject: Re: sum() function
From: Carles Canellas <ccanellasc@xxxxxxxx>
Date: Wed, 26 Mar 2003 15:20:35 +0100 (CET)
|
sum(root/tag[tagID='FA40']/tagF/tagG) will do the job.
Adjust it on your output needs.
--- David Alcantara <wwwdavid@xxxxxx> escribió: >
Hello,
> i have a XML like:
>
> <root>
> <tag>
> <tagID>FA40</tagID>
> <tagF>
> <tagG>25</tagG>
> </tagF>
> </tag>
> <tag>
> <tagID>RR</tagID>
> <tagF>
> <tagG>50</tagG>
> </tagF>
> </tag>
> <tag>
> <tagID>FA40</tagID>
> <tagF>
> <tagG>25</tagG>
> </tagF>
> </tag>
> </root>
>
> and I want to apply the function sum() but only when
> tagID = FA40.
> Can somebody help me?
> thanks in advance
>
> david
>
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
=====
Carles Canellas.
VicerTec S.L.
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|