W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2177] R-179: Defect in schema component model wrt enumeration and annotations

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 18:40:10 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EFcB0-0008Ja-J9@wiggum.w3.org>


           Summary: R-179: Defect in schema component model wrt enumeration
                    and annotations
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

Consider the following example: 

<!-- other Address derivations for more countries -->
<simpleType name="USState">
 <restriction base="string">
  <enumeration value="AK">
  <enumeration value="AL">
  <enumeration value="AR">
  < and so on ... -->

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. 


Mapping XML Rep to schema components, 

{annotation} The annotations corresponding to all the <annotation> element 
information items in the [children], if any. 


Schema Representation Constraint: Multiple enumerations 

If multiple <enumeration> element information items appear as [children] of a 
<simpleType> 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's {facets} property. That is, 

{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. 

Received on Wednesday, 14 September 2005 18:40:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC