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: <5.1.0.14.1.20020903110359.04a6db88@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Hi,

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.

Thanks,

John Mercado



Do You Yahoo!?
<http://rd.yahoo.com/finance/mailsig/new/*http://finance.yahoo.com>Yahoo! 
Finance - Get real-time stock quotes 
Received on Tuesday, 3 September 2002 13:05:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT