Web Design and Development Forums

[XSLT]: Recursive Function to Add/Multiply

This is a discussion on "[XSLT]: Recursive Function to Add/Multiply" within the XML, RSS & Atom 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 > Program Your Website > XML, RSS & Atom

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack (1) Thread Tools Rate Thread
Old Oct 9th, 2006, 08:15   1 links from elsewhere to this Post. Click to view. #1 (permalink)
New Member
 
Join Date: Oct 2006
Location: Portugal
Posts: 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
ThyGizmo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
xslt recursive template

Thread Tools
Rate This Thread
Rate This Thread:

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/xml-rss-and-atom/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 XML, RSS & Atom 1 Jul 7th, 2007 15:32
Need help to create xslt. muhammadawood XML, RSS & Atom 0 Aug 4th, 2006 07:32
XSLT Drop Down Neilson XML, RSS & Atom 0 May 1st, 2006 19:58



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 14:59.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59