xsl-list
[Top] [All Lists]

RE: math return result problem

2005-04-05 10:39:22
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(_at_)brookes(_dot_)ac(_dot_)uk 
[mailto:04083259(_at_)brookes(_dot_)ac(_dot_)uk] 
Sent: 05 April 2005 18:33
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>