- From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
- Date: Mon, 04 Feb 2002 12:20:01 -0500
- To: www-xml-query-comments@w3.org
6.2.3 in the functions and operator spec suggests that: xf:date("2001-5-31") returns a date value corresponding to the 31st of May, 2001. In fact, this example would return an error because ("2001-5-31") is not a legal date literal. I suspect you meant xf:date("2001-05-31") The schema data types spec states that The lexical representation for date is the reduced (right truncated) lexical representation for dateTime: CCYY-MM-DD. No left truncation is allowed." The next example is correct, but it has two errors not one. I suspect you intended xf:date("2001-04-31") returns an error -- +-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer | +-----------------------+------------------------+-------------------+ | Java I/O (O'Reilly & Associates, 1999) | | http://www.ibiblio.org/javafaq/books/javaio/ | | http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ | +----------------------------------+---------------------------------+
Received on Monday, 4 February 2002 12:19:50 UTC