Hi Mike,

The phrase " derived from the XML schema date/time type" just means that the pattern varies depends on whether the xsd type is date, dateTime or time, it does not mean that it is set up for parsing a date, dateTime or time value that conforms to the lexical space for the xsd type. The pattern values were chosen to be the typical patterns seen in the non-XML world.  

We can debate whether ZZZ is obsolescent and needs to be updated. IBM DFDL has shipped with ZZZ as far as I am aware.

Regards

Steve Hanson
Architect, Data Format Description Language (DFDL)
Co-Chair,
OGF DFDL Working Group
IBM SWG, Hursley, UK

smh@uk.ibm.com
tel:+44-1962-815848




From:        Mike Beckerle <mbeckerle.dfdl@gmail.com>
To:        dfdl-wg@ogf.org,
Date:        29/01/2013 13:55
Subject:        [DFDL-WG] clarification needed: datetime and time
Sent by:        dfdl-wg-bounces@ogf.org




In the below. Should xs:datetime have trailing timezone as well? Right now it has no tz component.

Seems to me it should to match iso 8601 format which is what XSD uses.

Also, I believe we now think ZZZ is not the right behavior, and seems to be deprecated in ICU. The right thing is ZZZZZ.
calendarPatternKind Enum

Valid values ‘explicit’, ‘implicit’

‘explicit’ means the pattern is given by dfdl:calendarPattern,

‘implicit’ means the pattern is derived from the XML schema date/time type.


Logical Type Default Pattern
xs:date yyyy-MM-dd
xs:dateTime yyyy-MM-dd'T'HH:mm:ss
xs:time HH:mm:ssZZZ

Annotation: dfdl:element, dfdl:simpleType



--
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology |
www.tresys.com
--
 dfdl-wg mailing list
 dfdl-wg@ogf.org
 
https://www.ogf.org/mailman/listinfo/dfdl-wg

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU