Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 8th, 2002, 01:47 AM
Wildman Wildman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 4 Wildman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question xml: How do I divide numbers in XSL expressions?

Can you teach me how to divide numbers in XSL expressions? I want to divide the values of two nodes.

<xsl:value-of select="sum(root/item) / root/dividend" />

XSL treats the slash as a parent-child relationship, not as division. How do I divide the sum by dividend.

Also how do I compute modulo in XSL expressions?

Reply With Quote
  #2  
Old April 30th, 2003, 12:07 PM
gzieve gzieve is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Philadelphia
Posts: 3 gzieve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 19 sec
Reputation Power: 0
Ever get an answer to this?

I have the same question...wondering if you ever figured it out. Thanks.

Reply With Quote
  #3  
Old June 30th, 2003, 02:28 AM
FranDan FranDan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Finland
Posts: 6 FranDan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to divide in XSL

Don't know if you got an answer to this but...

replace the "/" with "div" and it works just fine !!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > xml: How do I divide numbers in XSL expressions?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway