W3C home > Mailing lists > Public > www-ql@w3.org > July to September 2001

Numeric Variables in XQuery

From: Elisha Berns <eberns@ix.netcom.com>
Date: Fri, 20 Jul 2001 14:46:24 -0700
To: <www-ql@w3.org>
Message-ID: <ONEKICJNCHPMPPDOHPKEOEOHCAAA.eberns@ix.netcom.com>
Dear All,

I have been attempting to write some XQuery examples and despite having read
the better part of the draft of XQuery 1.0 there were not any examples
regarding how to handle numeric values of nodes and attributes.  Apparently
the default data type for a numeric is integer and similarly for a numeric
literal.   I say this simply because the QuiP prototype of an XQuery
processor seems to work that way.  However whenever I tried to use a
floating point literal in the query, no dice.    Guidelines and examples of
using floating point values and  the CAST AS operator would also be helpful.

Thanks for any help in the matter,

Yours truly,

Elisha Berns
Received on Friday, 20 July 2001 17:39:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:17 GMT