<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28299</bug_id>
          
          <creation_ts>2015-03-23 01:05:12 +0000</creation_ts>
          <short_desc>[XDM3.1] 2.5.1 Predefined Schema Types - incorrect list</short_desc>
          <delta_ts>2015-07-16 19:19:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Data Model 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Durusau">patrick</reporter>
          <assigned_to name="Norman Walsh">ndw</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>john.snelson</cc>
    
    <cc>jonathan.robie</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118817</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Durusau">patrick</who>
    <bug_when>2015-03-23 01:05:12 +0000</bug_when>
    <thetext>2.5.1 Predefined Schema Types

&quot;The schema types defined in [XQuery and XPath Data Model (XDM) 3.1] are summarized below.&quot;

Using the correct URL: http://www.w3.org/TR/xpath-datamodel-31/#types-predefined, might alert proofers to XDM defining five (5) additional types, not six as listed here. 

#6 declares itself: &quot;[Definition: xs:error is a simple type with no value space, defined in [XML Schema 1.1].&quot; to not belong in the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121971</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-11 21:15:07 +0000</bug_when>
    <thetext>xs:error is missing from XDM31.  It is used in the XQuery and XPath specifications, it needs to be in the data model.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122087</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-15 15:43:30 +0000</bug_when>
    <thetext>Noted also:

Section 2.7.2 of XDM:

(a) lists 5 &quot;additional types&quot; first defined in XDM rather than XSD, of which 3 have in fact been adopted by XSD 1.1.

(b) omits types that are neither &quot;primitive types&quot; nor &quot;additional types&quot;, of which xs:error is one example (others are xs:int, xs:NMTOKEN, etc)

(c) omits another &quot;additional type&quot;: xs:numeric</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122158</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-16 19:07:49 +0000</bug_when>
    <thetext>We decided that the types in the XS namespace could be classified as follows and that the section should be recast along these lines:

The data model adopts the following types from [Schema 1.0 Part 2]:

19 primitive types...
NN derived types...
3 built-in list types xs:NMTOKENS, IDREFS, ENTITIES

It further defines the following types which were originally defined in XDM 1.0 and were subsequently adopted by XSD 1.1:

xs:anyAtomicType
xs:dayTimeDuration
xs:yearMonthDuration

In the case of a processor that &quot;supports&quot; XSD 1.1 the data model also includes:

the new union type xs:error (a type with no instances)
the new derived type xs:dateTimeStamp

The following types, although they use the xs namespace, are defined here in XDM and not in XSD:

xs:untypedAtomic
xs:numeric, a union type whose members are xs:double, xs:float and xs:decimal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122159</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-16 19:14:11 +0000</bug_when>
    <thetext>Noted also, F+O defines

The type xs:numeric is defined as a union type whose member types are (in order) xs:double, xs:float, and xs:decimal.

but this definition really ought to be in XDM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122160</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-16 19:16:42 +0000</bug_when>
    <thetext>XQuery / XPath do not currently say that only implementations that support XML Schema 1.1 need to support xs:error. This is not listed in this text:

&lt;quote&gt;
Whether the type system is based on [XML Schema 1.0] or [XML Schema 1.1]. An implementation that has based its type system on XML Schema 1.0 is not required to support the use of the xs:dateTimeStamp constructor or the use of xs:dateTimeStamp as TypeName in any expression.
&lt;/quote&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>