Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: [XSLT]: Recursive Function to Add/Multiply [XSLT]: Recursive Function to Add/MultiplyTo: NULL Date: 10/9/2006 1:21:00 AM
Hi guys, I have been browsing your forums on a daily basis and have
found
many answers to many of my problems! Thanks!!!
I now need your help!
I have the following XML file, which represents expressions with "+"
and "*"
artihmentic operands:
<m value="10">
<i value="5"/>
<m value="10">
<i value="2"/>
<i value="2"/>
<i value="2"/>
</m>
</m>
This represents the following expression:
10 * (5 + (10 * (2 + 2 + 2)))
I want to compute the expression's value (for the given example, the
result
should be 650).
Can anyone help me achieve this through a single recursive template?
Many thanks to you all!
Nuno
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
