<?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>2156</bug_id>
          
          <creation_ts>2005-09-14 15:12:37 +0000</creation_ts>
          <short_desc>R-160: Question re: validity of type override with union type</short_desc>
          <delta_ts>2009-04-21 19:25:05 +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>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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>6131</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 15:12:37 +0000</bug_when>
    <thetext>I am unable to determine the intent and meaning of section 3.14.6 Constraints 
on Simple Type Definition Schema Components. 

My recall is that the intent of instance type overides is ONLY to apply 
stricter constraints on the data to be validated. Yet, when working an example, 
the use in extensibility deriving alternative types became apparent. 

Read one way:

- unitedColor is validly derived by union from rgbColor and the instance is 
valid. If So, the text in parenthesis is not normative and confusing. 

Or another way

- unitedColor is NOT validly derived from rgbColor because it is not derived by 
restriction and therefore the instance is not valid. If so, why is union in the 
list? 

Analysis: 

My guess: the first two test-colors are valid, the last three are not. xsi:type 
can be a built-in type or a globally defined type in the schema but must be a 
type that is derived from the original type of the element or attribute. 

I think the ruling clause is:
- 2.2.4 does not apply because B (rgbColor) is not an union. 
- 2.2.2 D&apos;s base type definition is not the simple ur-type definition and is 
validly derived from B given the subset, as defined by this constraint. 
where in this case, B (rgbColor) is restriction of unsignedByte 

when D = unitedColor - The fact that a union exists should have no impact, the 
union is in D&apos;s variety and the text in the first para says &quot;of which only 
restriction is actually relevant&quot; 

Yet, the only reason to believe that it is not validly derived is the clause 
2.2.2. This logic becomes circular. 

See the following for more info and examples:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0152.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6132</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 15:14:23 +0000</bug_when>
    <thetext>Discussed at the Sept. 19 conference call. 

RESOLVED: to class R-160 as clarification without erratum (i.e. no change is 
required). PVB to draft reply to commentator on R-160.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>