[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: math return result problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|