[Bug 1408] New: Derived types from xs:duration

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

           Summary: Derived types from xs:duration
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
               URL: http://lists.w3.org/Archives/Member/w3c-xml-schema-
                    ig/2005Apr/0054.html
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: ashok.malhotra@oracle.com
         QAContact: public-qt-comments@w3.org


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

Received on Friday, 13 May 2005 20:09:47 UTC