[Bug 1320] New: Component extraction on durations

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1320

           Summary: Component extraction on durations
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


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

Received on Tuesday, 10 May 2005 19:03:19 UTC