<?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>11336</bug_id>
          
          <creation_ts>2010-11-17 17:28:06 +0000</creation_ts>
          <short_desc>Permitted usage of xs:anyAtomicType</short_desc>
          <delta_ts>2011-05-30 18:21:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11103</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>gandhi.mukul</cc>
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42590</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-11-17 17:28:06 +0000</bug_when>
    <thetext>We don&apos;t allow a user-defined type to be derived by restriction from xs:anyAtomicType.

But we do allow a user-defined type to be derived by restriction from union(xs:anyAtomicType, xs:integer), or even from union(xs:anyAtomicType) (a singleton union), which appears to have exactly the same semantics.

This seems inconsistent...

I cannot see any reason for allowing xs:anyAtomicType (or xs:anySimpleType) to appear as a member type of a union or as an item type of a list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42591</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-11-17 17:28:45 +0000</bug_when>
    <thetext>Note, Saxonica test simple053.xsd relates to this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42603</commentid>
    <comment_count>2</comment_count>
    <who name="Mukul Gandhi">gandhi.mukul</who>
    <bug_when>2010-11-17 23:32:06 +0000</bug_when>
    <thetext>(In reply to comment #0)

I think this bug report is related to the bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=11335 you&apos;ve opened.

&gt; We don&apos;t allow a user-defined type to be derived by restriction from
&gt; xs:anyAtomicType.

In the bug 11335 my opinion is to retain the qualifier MAY for this feature. So as per my understanding we must not say for e.g &quot;we *don&apos;t* allow&quot; (since MAY is specifying a lax implementation behavior).
 
&gt; But we do allow a user-defined type to be derived by restriction from
&gt; union(xs:anyAtomicType, xs:integer), or even from union(xs:anyAtomicType) (a
&gt; singleton union), which appears to have exactly the same semantics.
&gt; 
&gt; This seems inconsistent...

If we retain MAY for the point I&apos;ve mentioned above, then the above examples shall be allowable as well.

&gt; I cannot see any reason for allowing xs:anyAtomicType (or xs:anySimpleType) to
&gt; appear as a member type of a union or as an item type of a list.

Again an MAY qualifier allows implementers to have a lax implementation (and ideally be implementation defined) in this regard.

Summarizing: I don&apos;t see these issues as significant design hole in the spec at the moment, so I&apos;m in favor of keeping the status-quo.

But I&apos;ll be fine with the eventual decision of the WG about this bug report and the bug 11335.

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43024</commentid>
    <comment_count>3</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-12-03 17:04:44 +0000</bug_when>
    <thetext>From the telcon --

MSM: we believe that anySimpleType and all of the specials have always been ruled as base types of restrictions, member types for unions, and item types for lists.

...: someone needs to send an email or paper that makes an argument that this premise is either true or false, and finds issues that have hinged on this premise over the years.

SG took an action to start email to this effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43030</commentid>
    <comment_count>4</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-12-03 19:29:13 +0000</bug_when>
    <thetext>Sandy Gao has started a discussion thread at
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2010Dec/0001.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45185</commentid>
    <comment_count>5</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-02-07 16:02:53 +0000</bug_when>
    <thetext>Possibly fulfilled by 11103.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45186</commentid>
    <comment_count>6</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-02-07 16:04:17 +0000</bug_when>
    <thetext>I think this point has been made sufficiently explicit by the change we adopted for bug 11103.  If others agree, we can close this without further action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45188</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-02-07 16:55:24 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 11103 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>