[XSLT]: Recursive Function to Add/Multiply

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices


Reply
 
LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old Oct 9th, 2006, 08:15
New Member
Join Date: Oct 2006
Location: Portugal
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
[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
Reply With Quote

Reply

Tags
xslt recursive template

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.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


All times are GMT. The time now is 12:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43