RE: Data-model, item-at accessor, why the index typed as xs:decim al?

> > Excuse me if I missed something, just one question. In XQuery1.0
> > XPath2.0 Data model defined item-at accessor, which 
> "returns the item in
> > 
> > the sequence at the specified index" and this index is defined as
> > xs:decimal. Is there a reason for the index to be decimal 
> rather than
> > integer? If so, anyway, the rules of rounding must be defined also.

There is a technical reason that many of these functions are defined to take
decimal rather than integer, namely that 2+2 returns a decimal rather than
an integer, and you want to be able to use such an expression as the
supplied argument. However, we're looking at other possible solutions to
this problem.

Mike Kay

Received on Saturday, 2 March 2002 06:07:28 UTC