[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] sorting date prob

Subject: RE: [xsl] sorting date prob
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 11 Apr 2002 09:40:06 +0100

> Yes. It is correct to be in the format yymmdd, because that
> is the ISO
> standard. And yes, everyone does not care about standards,
> but I have to.

If you care about standards then I think you need to be a little more

ISO 8601:2000 recognizes yymmdd as a "truncated representation" of a date,
and allows its use only "by mutual agreement of the partners in information
interchange". The standard defines two formats for the "complete
representation" of a "calendar date", namely the "basic format" yyyymmdd,
and the "extended format" yyyy-mm-dd. In XML documents, the extended format
is preferable, because it is the one that XML Schema has adopted. But the
basic format can be useful on occasions because it allows "<" and ">"
comparisons in XPath 1.0 expressions, treating the date as a number.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread