[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: math return result problem

Subject: RE: math return result problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 18:39:22 +0100
math qustion
Your previous version of the expression had the chance of being right, but
we couldn't tell because you didn't show us the whole picture.

This version is definitely wrong, because if the context node is an x
element then it can't also be a y element.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: 04083259@xxxxxxxxxxxxx [mailto:04083259@xxxxxxxxxxxxx] 
> Sent: 05 April 2005 18:33
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  math return result problem 
> 
> sorry last time i was not clear about my qustion
> 
> is the following valid
> i am trying to get  (third of the value of x )and (two third 
> of the value
> held in y )
> such :1/3(x)+2/3(y)
> 
> 
> <xsl:value-of select="(1 div 3 * (self::x)) + (2 div 3  * 
> (self::y))"/>
> 
> thanks

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.