W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Re: dateTime and Patterns.

From: Martin Duerst <duerst@w3.org>
Date: Wed, 29 Aug 2001 18:14:13 +0900
Message-Id: <4.2.0.58.J.20010829181127.02c624b0@mail.asahi-net.or.jp>
To: martin.me.roberts@bt.com, xmlschema-dev@w3.org
At 12:04 01/08/28 -0400, martin.me.roberts@bt.com wrote:
>Is it possible to change the format of a dateTime attribute using patterns?

Restrict - yes, change - no.

I.e. you can write a pattern that restricts dates to be e.g.
only in even years. But you cannot write a pattern to change
the order of year-month-day. For the later, the best thing
you can do is something like:

<date value='2001-08-29'>Wednsday August 29, 2001</date>

Regards,   Martin.
Received on Wednesday, 29 August 2001 05:14:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:23 GMT