<?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>2223</bug_id>
          
          <creation_ts>2005-09-14 19:23:46 +0000</creation_ts>
          <short_desc>R-231: Enumeration restrictions are unclear</short_desc>
          <delta_ts>2006-12-08 18:03:17 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>2246</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>2454</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <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>6246</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:23:46 +0000</bug_when>
    <thetext>The prose in parts 1 and 2 wrt the components which result from a pair of type 
definitions such as: 

Example:

&lt;xs:simpleType name=&quot;A&quot;&gt;
 &lt;xs:restriction base=&quot;xs:token&quot;&gt;
  &lt;xs:enumeration value=&quot;x&quot;/&gt;
  &lt;xs:enumeration value=&quot;y&quot;/&gt;
  &lt;xs:enumeration value=&quot;z&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

&lt;xs:simpleType name=&quot;B&quot;&gt;
 &lt;xs:restriction base=&quot;A&quot;&gt;
  &lt;xs:enumeration value=&quot;y&quot;/&gt;
 &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;

is not clear at all. 

Does the {facets} property of B contain: 

1 - One enumeration component whose {value} is {y}? 
2 - One enumeration component whose {value} is {x, y, z}? 
3 - Two enumeration components whose {value}s are {y} and {x, y, z}? 

This need to be cleaned up once and for all. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JulSep/0060.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12827</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-11-04 16:17:50 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; Does the {facets} property of B contain: 
&gt; 
&gt; 1 - One enumeration component whose {value} is {y}? 
&gt; 2 - One enumeration component whose {value} is {x, y, z}? 
&gt; 3 - Two enumeration components whose {value}s are {y} and {x, y, z}? 

As best I can tell, it must be either 1 or 3, and is presumably is implementation-dependent which.  On the one hand, for evaluation purposes it doesn&apos;t matter since evaluating against {x, y, z} is totally redundant when also evaluating against {y}.  OTOH, allowing 3 makes it&apos;s esxposure implementation dependent if that (those) component(s) is (are) hooked into a PSVI or other application-visible place.  (I&apos;m not going to claim expertise in the intricacies of &quot;extreme PSVI&quot; without more searching than I want to do right now.)  I thought that the WG had prescribed 1, but I&apos;m not clever enough to read that into the spec as it stands now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12828</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-11-04 22:19:50 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; As best I can tell, it must be either 1 or 3, and is presumably is
&gt; implementation-dependent which.

Further information:  In the definition of &quot;constitutes a restriction&quot; (from Part 1, Structures), line two (&quot;2 Every facet in B is in R, unless it is of the same kind as some facet in S.&quot;):  If you interpret the word &quot;unless&quot; as meaning not only that B need not be in R but must not be in R, then that precludes more than one of any kind of facet in {facets}.

I think we might want to reword that definition in Part 1, and also at least put a note in Part 2 explaining the result.

In any case, this bug seems to be a duplicate of bug 2246, so I&apos;m closing this one.  I&apos;ll try to put a more complete explanation of how I got to this conclusion in the comments for that bug.

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

    </bug>

</bugzilla>