<?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>5267</bug_id>
          
          <creation_ts>2007-11-13 17:27:38 +0000</creation_ts>
          <short_desc>[DM] xs:dayTimeDuration and xs:yearMonthDuration are not primitive simple types</short_desc>
          <delta_ts>2008-09-16 19:54:51 +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 1.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Zongaro">zongaro</reporter>
          <assigned_to name="Anders Berglund">alb.w3c</assigned_to>
          
          
          <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>17701</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2007-11-13 17:27:38 +0000</bug_when>
    <thetext>Bug 4984 correctly points out that xs:untyped should not be listed as a primitive simple type in Section 3.2.  In addition, the types xs:dayTimeDuration and xs:yearMonthDuration should not be on the list either, as these are both derived rather than primitive simple types.  Removing them would bring the number of primitive simple types to 21.

I propose the following rewording:

[Definition: There are 21 primitive simple types: the 19 defined in Section 3.2 Primitive datatypesXS2 of [Schema Part 2], xs:untypedAtomic and xs:anyAtomicType], defined in 2.6 Types.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17717</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-11-14 08:47:17 +0000</bug_when>
    <thetext>It feels like a change like this can have dramatic effects, in particular on operator binding. Maybe it is as it is, for being somewhat aligned with the next version of Schema?

xs:integer is neither a primitive type according to W3C XML Schema 3.2, but it&apos;s probably as well listed all over the specs as primitive. I have a vague memory of that either XQuery or F&amp;O explicitly said that xs:integer was considered as a primitive type even though it isn&apos;t.

In XQuery 1.0, H Glossary (Non-Normative), section xs:anyAtomicType are xs:integer and xs:untypedAtomic mentioned as primitive atomics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17718</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-11-14 09:11:57 +0000</bug_when>
    <thetext>These types aren&apos;t primitive, they are derived; but along with xs:integer they are specially recognized by the rules for operator binding and casting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17721</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-11-14 21:10:31 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; 
&gt; xs:integer is neither a primitive type according to W3C XML Schema 3.2, but
&gt; it&apos;s probably as well listed all over the specs as primitive. I have a vague
&gt; memory of that either XQuery or F&amp;O explicitly said that xs:integer was
&gt; considered as a primitive type even though it isn&apos;t.

You&apos;re maybe thinking of F+O section 17.1: &quot;These four types [xs:untypedAtomic, xs:integer, xs:yearMonthDuration, and xs:dayTimeDuration] are not primitive types but they are treated as primitive types in this section.&quot; (Although I don&apos;t see why xs:untypedAtomic is &quot;not primitive&quot;.) 
 
&gt; In XQuery 1.0, H Glossary (Non-Normative), section xs:anyAtomicType are
&gt; xs:integer and xs:untypedAtomic mentioned as primitive atomics.

Similarly in XQuery section 2.5.1, point 5.

Getting back to the Data Model spec, section 2.6.2 (under xs:anyAtomicType) also mentions xs:integer as a primitive atomic type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21925</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Berglund">alb.w3c</who>
    <bug_when>2008-09-16 19:53:35 +0000</bug_when>
    <thetext>The WGs accepted the commentator&apos;s suggested replacement text at the 13 Nov 2007 telcon. Errata DM.E009.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>