<?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>2084</bug_id>
          
          <creation_ts>2005-09-09 03:22:09 +0000</creation_ts>
          <short_desc>R-094: Issues with identity constraints and derivation by restriction</short_desc>
          <delta_ts>2012-12-04 00:52: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>Structures: XSD Part 1</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</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="David Ezell">David_E3</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>5977</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 03:22:09 +0000</bug_when>
    <thetext>In the section titled &apos;Schema Component Constraint: Particle Restriction OK 
(Elt:Elt -- NameAndTypeOK)&apos;, the following is mentioned:

&quot;For an element declaration particle to be a valid restriction of another 
element declaration particle all of the following must be true:

5 R&apos;s declaration&apos;s {identity-constraint definitions} is a subset of B&apos;s 
declaration&apos;s {identity-constraint definitions}, if any.&quot; 

The issues are: 

the spec should be clarified to state what &quot;subset&quot; means 
the subset requirement runs the wrong way -- the derived element&apos;s IC&apos;s should 
be a _super_set of the base&apos;s. 
an element decl in a restriction can&apos;t have the same ICs as its corresponding 
decl in the base, because that would violate the named-components-are-unique 
constraint 
The original questions were posted to the schema-dev list. Henry summarized the 
issues in the following mail on schema-comments: 
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0187.html

and:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0188.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5978</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 03:22:53 +0000</bug_when>
    <thetext>See: http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jan/0072.html 

Resolution:
Henry Thompson will create an erratum that highlights the current limitations 
(see bullet 3 above). The WG may revisit this issue in a future specification.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>