<?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>1295</bug_id>
          
          <creation_ts>2005-05-03 14:21:58 +0000</creation_ts>
          <short_desc>[DM] (from XML Core WG) Relation of DM types to Schema types</short_desc>
          <delta_ts>2005-10-06 16:04:26 +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>Last Call drafts</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Tobin for XML Core WG">richard</reporter>
          <assigned_to name="Norman Walsh">Norman.Walsh</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>3510</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Tobin for XML Core WG">richard</who>
    <bug_when>2005-05-03 14:21:58 +0000</bug_when>
    <thetext>2.6.2, xdt:anyAtomicType
xdt:anyAtomicType &quot;is derived from&quot; xs:anySimpleType, but how?
Trivial restriction?  And if xs:string (etc) is derived from
xdt:anyAtomicType, does that mean its {base type definition} is no
longer xs:anySimpleType?

After discussion with Henry Thompson, we considered the theory that
the type system in the Data Model is not the Schema type system, but
an almost isomorphic one that uses the same names.  If this is the
case, it should be made clearer.  (Perhaps it is in the formal
semantics.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3026</commentid>
    <comment_count>1</comment_count>
    <who name="Norman Walsh">Norman.Walsh</who>
    <bug_when>2005-06-07 14:51:19 +0000</bug_when>
    <thetext>FYI: Minutes of discussion from May 2005:

&gt; 
&gt; d) 1295  nor  Data Mod  [DM] (from XML Core WG) Relation of DM types to
&gt; Schema types

&quot; 2.6.2, xdt:anyAtomicType
xdt:anyAtomicType &quot;is derived from&quot; xs:anySimpleType, but how?
Trivial restriction?  And if xs:string (etc) is derived from
xdt:anyAtomicType, does that mean its {base type definition} is no
longer xs:anySimpleType? ... we considered the theory that
the type system in the Data Model is not the Schema type system, but
an almost isomorphic one that uses the same names.  If this is the
case, it should be made clearer.  (Perhaps it is in the formal
semantics.)&quot;

MR: Yes, defined in the formal semantics.

MSMQ: This is a plea for more honesty about the relationship between the QT and
Schema type systems.

Proposal: Change from &quot;derived from simple type&quot; to &quot;subtype of simple type&quot;.

[discussion of whether this really addresses the question]
JR: 2.5.4 in XQuery discusses this.  Implies that these are as defined in XSD, 

MSMQ: ...but they are not only defined in XSD 1.1

Don: It&apos;s derived by restriction by excluding list and union types. 

JR: DM 2.6.3 we use different shapes for those that come from XSD.  

MSMQ: In general, QT&apos;s use of restriction and extension is consistent with
XSD&apos;s.  Don&apos;s analysis is not based on anything explicit in the documents. 
[Extensional vs intensional subtypes ???]

Karun: There exists a base type in formal semantics
Mary: But it&apos;s not called {base-type}

MR: 2.4.1 XML Schema and the QT type system.

MSMQ: Proposes that we go back to asking the editor that we put in wording that
xdt:anyAtomicType &quot;is a subtype of&quot; xs:anySimpleType

[do we define &quot;subtype&quot; anywhere?]

Jim: 8.3.2 in FS

MSMQ: Proposal - In section 2.6.2 of Data Model, in the list of predefined
types, under anyAtomicType, delete &quot;is derived from&quot; and replace with &quot;is a
subtype of.&quot; 

Karun: &quot;is derived from&quot; is used all over XQuery.

[more arcane discussion]

Jim: Points us back to Michael&apos;s proposal.  Support? 
[Various people say yes].
Karun: prefers status quo, but can live with it.
JR: wait, I want to see ...[looking at 3.1.4 in datamodel] ... thinks we need to
say something about &quot;subtype.&quot;

Jim: Hearing some resistance ... 
Norm: Move on, leave open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4921</commentid>
    <comment_count>2</comment_count>
    <who name="Norman Walsh">Norman.Walsh</who>
    <bug_when>2005-07-19 20:34:52 +0000</bug_when>
    <thetext>The XSL and XML Query WGs propose to resolve this issue by changing the
definition of xdt:anyAtomicType in the following way:

[Definition: xdt:anyAtomicType is an atomic type that includes all
atomic values (and no values that are not atomic).] Its base type is
xs:anySimpleType from which all simple types, including atomic,
list, and union types are derived. All primitive atomic types, such as
xs:integer and xs:string, have xdt:anyAtomicType as their base type.

Please let us know if this satisfies your concerns.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6382</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Tobin for XML Core WG">richard</who>
    <bug_when>2005-09-21 15:36:48 +0000</bug_when>
    <thetext>(In reply to comment #2)

This still leaves the issue of how XSL/XQuery&apos;s version of the schema type system
relates to XML Schema&apos;s.  It seems that these are two separate, but almost
identical, type systems.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6483</commentid>
    <comment_count>4</comment_count>
    <who name="Norman Walsh">Norman.Walsh</who>
    <bug_when>2005-09-27 11:10:37 +0000</bug_when>
    <thetext>This apparent discrepancy will be resolved, we anticipate, by the XML Schema 1.1
draft
(http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.html#anyAtomicType-def
[member only]).

In the meantime, we observe that the consequences of any discrepancy are
mitigated by the fact that the data model doesn&apos;t provide any mechanism for a
user function to discover the discrepancy.

We don&apos;t plan to make any changes. Do you find this satisfactory?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6634</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Tobin for XML Core WG">richard</who>
    <bug_when>2005-10-03 12:19:59 +0000</bug_when>
    <thetext>(In reply to comment #4)

The XML Core group accepts your decision on this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>