W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

What is the canonical lexical representation of duration?

From: by way of <johnkmercado@yahoo.com>
Date: Tue, 03 Sep 2002 11:04:17 -0600
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>


What is the canonical lexical representation of duration?, and how do I get 
there from any other lexical representation.  I ask because I am trying to 
understand the XQuery yearMonthDuration and dayTimeDuration types.  Those 
two types have a canonical form that converts, for example, P1Y to 
P12M.  So, there is only one value in the value space that equals this 
amount of time.  This makes sense, but it is not the way I thought the XML 
Schema types worked.  Are the duration values P1Y and P12M considered to be 
the same value?

If so, how do I know which one is the canonical form?  The rec doesn't say 
anything about this.

If not, isn't the XQuery spec in direct violation of the XML Schema spec 
for converging values in the value space?

This question aside, there is also the minor point of other different 
lexical representations (e.g. leading zeros in the number values, trailing 
zeros in the number of seconds) that would also need to be clarified when 
deciding on the canonical representation for duration.


John Mercado

Do You Yahoo!?
Finance - Get real-time stock quotes 
Received on Tuesday, 3 September 2002 13:05:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:59 UTC