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

Re: AW: variable and arithmetrics

Subject: Re: AW: variable and arithmetrics
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 10 Nov 2004 04:13:21 -0800
xsl calculation variable
Andreas Andersson wrote:

It doesn't feel very logical to me to have the "* 100" inside the "select" statement but it works so....

How so? If the value of the element selected in an XPath statement multiplied by 100 was equal to a particular value of interest wouldnt you want to select that value and print it to the output stream?

I do see your point from a strict "selection of an element" standpoint... but XPath is much more than just selecting elements and attributes from a given path in your XML data set. And with XPath 2.0 comes the ability to do extensive calculations and conditional selection of data elements and attributes far beyond what the word "Path" would typically suggest in computing terms. I guess thats where the eXtensible part of XPath comes in...

Best regards,

<M:D/>


You're interested in the result of the calculation, aren't you?


Yes. 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.