[xquery-talk] Re: The State of Native XML databases

Elliotte Harold elharo at metalab.unc.edu
Tue Aug 21 08:32:05 PDT 2007


Andrew Welch wrote:

> Isn't the difference that one _looks like_ a date, but the other _is_
> an xs:date.

No. One looks like an xs:date. The other is indicated to be an xs:date 
by some schema. However that does not make it an xs:date. It merely 
means one process using that schema chooses to see it that way. Other 
processes may use different schemas (or no schema at all) and see it a 
different way.


> If you have an operation that compares dates, isn't it wasteful to
> convert the untyped <date> to an xs:date every time?

And if you have a second process that compares them as strings? or as 
dates in a different calendar? What then?

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the talk mailing list