xsl-list
[Top] [All Lists]

Re: typing of integer operations in Xpath2

2004-04-20 13:41:39
Michael Kay wrote:
6) The rules could be changed to avoid promoting integers to doubles,
  when all operands are integer, and an integer result is sensible
  (e.g. plus, minus, idiv, multiply)


It is already the case that if all the operands are integers then the result
is an integer.


I suspect his problem is that, without a schema, all elements from the input XML file (e.g., foo/bar) default to double unless cast. But, he didn't provide enough detail to be sure.




--

-------------------------------------------------------------------------
=    Jeff Kenton      Consulting and software development               =
=                     http://home.comcast.net/~jeffrey.kenton           =
-------------------------------------------------------------------------