This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1408 - Derived types from xs:duration
Summary: Derived types from xs:duration
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://lists.w3.org/Archives/Member/w...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 20:09 UTC by Ashok Malhotra
Modified: 2005-09-29 11:03 UTC (History)
0 users

See Also:


Attachments

Description Ashok Malhotra 2005-05-13 20:09:44 UTC
In 10.3.1:

>[Definition] xdt:yearMonthDuration is derived 
>from xs:duration by restricting its lexical 
>representation to contain only the year and 
>month components. The value space of 
>xdt:yearMonthDuration is the set of xs:integer 
>month values.

The two sentences are contradictory.  If xdt:yearMonthDuration is derived
from xs:duration then its value space is necessarily a set of pairs,
since that is what the value space of xs:duration is.

The correct description of the value space is the set of pairs where the
first coordinate is the set of integer month values and the second coordinate
is zero.

In addition, while the month property values of xs:duration are integers,
they are not specified to be of type xs:integer.

Schema has (??) adopted a simpler pattern for the derivation, which produces
the same derived datatype.

Dave Peterson for the XML Schema WG
Comment 1 Ashok Malhotra 2005-05-13 20:17:46 UTC
Similar comment applies to xdt:dayTimeDuration

Dave Peterson for the XML Schema WG 
Comment 2 Ashok Malhotra 2005-05-19 14:25:17 UTC
This was discussed by the joint QT WGs on 5/18/2005.  They agreed that the model
is different from the Schema model but as this did not affect the results of
component extraction and the values returned by functions, no change was needed.

Ashok Malhotra