<?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>2177</bug_id>
          
          <creation_ts>2005-09-14 18:40:10 +0000</creation_ts>
          <short_desc>R-179: Defect in schema component model wrt enumeration and annotations</short_desc>
          <delta_ts>2007-03-29 18:48:58 +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.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsDrafting</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <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>6177</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:40:10 +0000</bug_when>
    <thetext>Consider the following example: 

&lt;!-- other Address derivations for more countries --&gt;
&lt;simpleType name=&quot;USState&quot;&gt;
 &lt;restriction base=&quot;string&quot;&gt;
  &lt;enumeration value=&quot;AK&quot;&gt;
   &lt;annotation&gt;lt;documentation&gt;Alaska&lt;documentation&gt;lt;annotation&gt;
  &lt;enumeration&gt;
  &lt;enumeration value=&quot;AL&quot;&gt;
    &lt;annotation&gt;lt;documentation&gt;Alabama&lt;documentation&gt;lt;annotation&gt;
  &lt;enumeration&gt;
  &lt;enumeration value=&quot;AR&quot;&gt;
    &lt;annotation&gt;lt;documentation&gt;Arkansas&lt;documentation&gt;lt;annotation&gt;
  &lt;enumeration&gt;
  &lt; and so on ... --&gt;
 &lt;restriction&gt;
&lt;simpleType&gt;

Per Part 2, http://www.w3.org/TR/xmlschema-2/#ct-enumeration 

{value} A set of values from the value space of the {base type definition}. 
{annotation} Optional. An annotation. 

and

Mapping XML Rep to schema components, 

{annotation} The annotations corresponding to all the &lt;annotation&gt; element 
information items in the [children], if any. 

and 

Schema Representation Constraint: Multiple enumerations 

If multiple &lt;enumeration&gt; element information items appear as [children] of a 
&lt;simpleType&gt; the {value} of the enumeration component should be the set of all 
such [value]s. 

This results in one enumeration component in the USState simple type 
component&apos;s {facets} property. That is, 

enumeration 
{value} = {AK, AL, AR, .. }
{annotation} = This is processor dependent.

This defect applies to enumeration and pattern schema components. This is not a 
critical issue and just a defect, I believe. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002OctDec/0000.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6178</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:40:44 +0000</bug_when>
    <thetext>Discussed and resolved at the 2003-11-14 telecon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7129</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-11-09 17:16:22 +0000</bug_when>
    <thetext>The fix to this bug should take into account the work done in 1.1
on the enumeration component.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>