Make ISO8601 'T' separator in DATE_TIME type mandatory in XSD as per ISO8601

Description

See

Activity

Show:
Thomas Beale
May 17, 2015, 9:26 AM

Correct.

Sebastian Iancu
December 21, 2018, 3:28 PM
Pablo Pazos
December 28, 2018, 4:48 AM

XSD type xsd:dateTime has the T since it follows this format: []CCYY-MM-DDThh:mm:ss[Z|(+|)hh:mm]

Maybe we need to be sure date time values in the XML have explicit type dateTime instead of string.

REF: https://www.w3.org/TR/xmlschema-2/#dateTime
REF: http://books.xmlschemata.org/relaxng/ch19-77049.html

Diego Bosca
December 28, 2018, 12:13 PM

Personally I would prefer the schema to be an exact mirror of the specs, so if the original is a string with a regex, then the schema should be a string with a regex

Sebastian Iancu
December 28, 2018, 12:41 PM

I agree, the openEHR specs allows a bit more than only the xs:dateTime format, and the ITS-XML should just reflect that in the XSD.

Question is if this change (see commit) is correct, good enough, etc

Reporter

Thomas Beale

Raised By

Thomas Beale

Components

Affects versions

Configure