RE: [xml-dev] Formulas in XML values

From
Michael Kay <>
To
'COUTHURES Alain' <>, 'Kurt Cagle' <>,
Date
2009-06-25T21:52:41Z
ID
<5CB9F5B20B44430ABA3C3433159847A5@Sealion>
Thread
RE: [xml-dev] Formulas in XML values
> In fact, I'm more concerned with validation than evaluation. 
...
> 
> Wouldn't it be great if "1/3 + 2/3" was exactly like "1" ? As 

Then you seem to be very concerned with evaluation. There are languages that
perform rational arithmetic which would make this expression return the
integer 1, but XPath is certainly not one of them, and as far as I know
Javascript isn't either.

Regards,

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