Re: [F&O] INF, -INF and NaN - literals?

> If you allow that, then you need something to handle the case of an
> element named NaN, etc.

which of course would be incompatible with Xpath 1, and also break the
general design of XPath (and Xquery) that there are no reserved words
and in a context where an element name is accepted _any_ element name
(even inconvenient ones like div or NaN) is accepted, and refers to an
element of that name, not an Xpath language construct.

number("NaN") has worked perfectly OK to represent NaN in Xpath 1, I
don't see why it should be confusing in Xpath 2.  This doesn't conflict
with the Schema usage; NaN would still be a valid literal for a double
in a schema validated attribute of type double.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Friday, 14 January 2005 11:20:36 UTC