473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

xsd:dateTime is uncompliant?

I'm having trouble determining whether or not the period in an
xsd:dateTime like this:

2006-10-04T03:42:12.3Z

should in fact be a comma, as date(1) would have it:

date --utc --iso-8601=ns
2006-10-04T04:02:01,012255000+0000

The examples of ISO-8601 I've seen online seem to side with date(1) and
not W3C XML Schema Datatypes.

Oct 4 '06 #1
4 2731


jsnX wrote:
I'm having trouble determining whether or not the period in an
xsd:dateTime like this:

2006-10-04T03:42:12.3Z

should in fact be a comma, as date(1) would have it:
I don't know what "date(1)" refers to but the schema specification
<http://www.w3.org/TR/xmlschema-2/#dateTime>
makes it clear what lexical representation an xs:dateTime can have:

The ·lexical space· of dateTime consists of finite-length sequences of
characters of the form:
'-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?

I don't see any comma in there.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 4 '06 #2
Martin Honnen wrote:
I don't know what "date(1)" refers to...
The date(1) command is available on UNIX. The '1' in parentheses refers
to it's section in the help pages. When you ask it for an ISO-8601
date, it spits out a comma and not a period.
...the schema specification makes it clear...
I'm not asking what the schema spec says - I'm asking whether it's
wrong or not. All the examples of ISO-8601 that I've seen use a comma,
not a period - and the schema spec claims conformance to ISO-8601.

Oct 4 '06 #3
jsnX wrote:
I'm not asking what the schema spec says - I'm asking whether it's
wrong or not. All the examples of ISO-8601 that I've seen use a comma,
not a period - and the schema spec claims conformance to ISO-8601.
Actually, no. The Schema spec actually says only that "The date and time
datatypes described in this recommendation were inspired by [ISO 8601]"
-- not that their lexical or value spaces are identical to that ISO
specification.

For what it's worth, ISO-8601 appears to accept *either* comma or period
as its decimal-point mark, though I'm told comma is considered preferred.

So you could try contacting the W3C and suggesting that comma be added
as an acceptable alternative, either as an erratum or in a future
revision of the Datatypes spec. I think you'll get some pushback, since
this would mean new documents could break old processors, but you might
be able to get them to add a variant (superset type?) of dateTime which
accepts either.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Oct 4 '06 #4


jsnX wrote:
I'm not asking what the schema spec says - I'm asking whether it's
wrong or not. All the examples of ISO-8601 that I've seen use a comma,
not a period - and the schema spec claims conformance to ISO-8601.
Where exactly does it do that, claiming conformance to ISO-8601? It
mentions ISO-8601 but it defines its own lexical representation and in
my understanding that defines what is right or wrong in terms of the
specification. Compliance with a different standard ISO standard is not
what the XSD data types specification demands for xs:dateTime.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: BjörnHolmberg | last post by:
Hi everyone! In the following code we get a UTC offset in xml. Since I want my WAP users in UTC+02:00 to see data on a server in some US time zone, a lot of confusion will be created from this...
0
by: Pascal Brunot | last post by:
Hi, Running XSDObjectGen (1.4.1.0) on the following Infopath-generated XSD gives an "unexpected error": "Event register full" during generation (exact english error message may differ, i am...
5
by: Naveen Mukkelli | last post by:
Hi, I'm writing a server applicaiton using C# and .NET Framework. This server sends out time to all the clients. The clients are expected to be written in various platforms for example, Delphi,...
9
by: Phil B | last post by:
I am having a problem with a datetime from a web services provider The provider is sending the following SOAP response <?xml version="1.0" encoding="utf-8"?> <soap:Envelope...
4
by: luckyabhishek | last post by:
Hi I am using a java webservice in a .NET application. The xml type of a field in this webservice is xsd:datetime. When i call the webservice from the application i get a deserialization error on...
4
by: Lucvdv | last post by:
I have to connect to a server set up by the government, where they used Apache Axis to create a webservice. The code I use to interface to the webservice is generated by wsdl.exe, based on a...
1
by: Chris Ashley | last post by:
Hi, I have an XML web service which accepts a few datetime values. We have some clients using it who are using different systems (java etc) and they need to know what the standard format for a...
0
by: tanish2k | last post by:
hi. I am using c#, visual studio 2003. I need to validate a xml file against schema which itself has 2 more schema imported under it. i have following 2 xsd files : xsd1 --->...
2
by: talk2jyotish | last post by:
Following is a piece of XSD code <xsd:simpleType name="TimestampType"> <xsd:annotation> <xsd:documentation>Base type for a date and time stamp</xsd:documentation> </xsd:annotation>...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.