This is a discussion on "[XSLT]: Recursive Function to Add/Multiply" within the Other Programming Languages section. This forum, and the thread "[XSLT]: Recursive Function to Add/Multiply are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[XSLT]: Recursive Function to Add/Multiply
|
||
| Notices |
![]() |
|
|
LinkBack (1) | Thread Tools |
#1
|
|||
|
|||
|
[XSLT]: Recursive Function to Add/Multiply
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 |
|
|
![]() |
| Tags |
| xslt recursive template |
| Thread Tools | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://webforumz.com/other-programming-languages/9534-xslt-recursive-function-to-add-multiply.htm
|
||||
| Posted By | For | Type | Date | |
| Web Design Forums - Web design and development help and discussion | This thread | Refback | Oct 9th, 2006 16:42 | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recursive programming in php | masha | PHP Forum | 4 | Oct 1st, 2007 12:37 |
| Unable to multiply without pressing button | codeexplorer | JavaScript Forum | 2 | Oct 1st, 2007 11:25 |
| XSLT and Firefox | masonbarge | Other Programming Languages | 1 | Jul 7th, 2007 15:32 |
| Need help to create xslt. | muhammadawood | Other Programming Languages | 0 | Aug 4th, 2006 07:32 |
| XSLT Drop Down | Neilson | Other Programming Languages | 0 | May 1st, 2006 19:58 |