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 1461 - Casting from YMD to DTD and vice versa
Summary: Casting from YMD to DTD and vice versa
Status: CLOSED FIXED
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 16:56 UTC by Michael Kay
Modified: 2005-09-29 11:20 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-05-17 16:56:46 UTC
It is possible to cast from an xs:duration to an xdt:dayTimeDuration. The
prinicile of type Substitutability therefore demands that it should be possible
to cast from any subtype of xs:duration to an xdt:dayTimeDuration. However, the
casting table in F+O section 17 says that casting from xdt:yearMonthDuration to
xdt:dayTimeDuration is disallowed.

In my view this cast should be allowed and should return a zero length duration.

The same also applies of course to the inverse cast.

(Problem revealed by running the test suite.)
Comment 1 Ashok Malhotra 2005-05-19 22:14:58 UTC
Adopted by the joint QT WGs on 5/19/2005.

Ashok Malhotra