<?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>28275</bug_id>
          
          <creation_ts>2015-03-23 00:24:38 +0000</creation_ts>
          <short_desc>[XP3.1] Introduction - type system reference</short_desc>
          <delta_ts>2015-07-14 14:26:11 +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>XPath 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</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>118792</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Durusau">patrick</who>
    <bug_when>2015-03-23 00:24:38 +0000</bug_when>
    <thetext>Introduction - second bulleted list

&quot;The type system of XPath 3.1 is based on XML Schema. It is implementation-defined whether the type system is based on [XML Schema 1.0] or [XML Schema 1.1].&quot;


The correct URL for XML Schema 1.0 reads: http://www.w3.org/TR/xmlschema-2/#typesystem 2 Type System

The correct URL for XML Schema 1.1 reads: http://www.w3.org/TR/xmlschema11-2/#typesystem (note the name is no longer type system but Datatype System in XML Schema 1.1, part 2, 2 Datatype System.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118857</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-23 08:37:55 +0000</bug_when>
    <thetext>Unfortunately XSD uses the terms &quot;simple type&quot; and &quot;datatype&quot; pretty much as synonyms. We decided, I think rightly, to avoid the term &quot;datatype&quot; in our specs, but it might be worth a mention when referring people to XSD part 2 to mention that they use the term &quot;datatype&quot;. XSD 1.1 part 2 has a veiled apology for the inconsistency:

&quot;Note: This specification sometimes uses the shorter form &quot;type&quot; where one might strictly speaking expect the longer form &quot;datatype&quot; (e.g. in the phrases &quot;union type&quot;, &quot;list type&quot;, &quot;base type&quot;, &quot;item type&quot;, etc. No systematic distinction is intended between the forms of these phrase with &quot;type&quot; and those with &quot;datatype&quot;; the two forms are used interchangeably.&quot;

(I remember the copy-editors for my book going nuts over this.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121954</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-10 21:24:42 +0000</bug_when>
    <thetext>The best fix I can think of for the terminology issue is to add this note:

2.5 Types

The type system of XQuery 3.1 is based on [XML Schema 1.0] or [XML Schema 1.1].

&lt;add&gt;
Note:

XQuery continues to use the term type system, as did [XML Schema 1.0]. [XML Schema 1.1] now uses the term datatype system.
&lt;/add&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122006</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-14 00:08:30 +0000</bug_when>
    <thetext>Looking at this more carefully, I disagree with the premise of the bug.  The type system of XQuery is &quot;based on&quot;, not identical to, the full type system of XML Schema, including both simple and complex types. It adds some types not found in XML Schema (maps, arrays, sequences), and ignores some details of XML Schema.

The &apos;datatype system&apos; of XML Schema Part 2 does not cover the types of XML Schema Part 1.  XQuery / XPath is &quot;based on&quot; both.

I think the appropriate thing to do here is to close the bug as INVALID/WONTFIX.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>