Re: [xsl] sum() function

Subject: Re: [xsl] sum() function
From: Jarkko.Moilanen@xxxxxx
Date: Wed, 26 Mar 2003 16:33:58 +0200
Lainaus David Alcantara <wwwdavid@xxxxxx>:

| 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


sum(tag/tagID[@tagID = 'FA4O']//tagG)"/>

Jarkko

***************************************************
* Jarkko Moilanen                                 *
* Project Researcher, ITCM (www.itcm.org)         *
* Profound XML technology Expert                  *
* University of Tampere                           *
* Hypermedia Laboratory                           *
***************************************************

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


Current Thread