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 1320 - Component extraction on durations
Summary: Component extraction on durations
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 19:03 UTC by Michael Kay
Modified: 2005-09-29 10:48 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-05-10 19:03:16 UTC
This is a follow-up to today's decision on casting xs:duration to string (bug
1292) in which we decided that an xs:duration of P24M should convert to the
string P2Y.

This raises the question, what is the value of
years-from-duration(xs:duration('P24M')). Is it 0 or 2?

We don't seem to have any text or examples to tell us the answer. Extrapolating
from the behavior of xdt:yearMonthDuration suggests the answer is 2, but we
should say so explicitly.

Michael Kay
Comment 1 Ashok Malhotra 2005-05-18 21:30:20 UTC
This was discussed during the joint WG meeting on 5/17/2005 and it was decided
that no change was required.

Ashok Malhotra