<?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>2062</bug_id>
          
          <creation_ts>2005-09-09 02:43:48 +0000</creation_ts>
          <short_desc>R-073: Question about unions of attribute uses</short_desc>
          <delta_ts>2009-04-21 19:21:32 +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/1.1 both</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</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>5933</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 02:43:48 +0000</bug_when>
    <thetext>The {attribute uses} property for an Attribute Group Definition schema 
component is defined as:

&quot;The union of the set of attribute uses corresponding to the &lt;attribute&gt; 
[children], if any, with the {attribute uses} of the attribute groups resolved 
to by the actual values of the ref [attribute] of the &lt;attributeGroup&gt; 
[children], if any.&quot;

When performing the union operation, are duplicate attribute uses included in 
the final set? For example, consider the following:

 &lt;xsd:attributeGroup name=&quot;fred&quot; &gt;
      &lt;xsd:attributeGroup ref=&quot;bas:bill&quot;/&gt;
      &lt;xsd:attributeGroup ref=&quot;bas:bill&quot;/&gt;
 &lt;/xsd:attributeGroup&gt;

 &lt;xsd:attributeGroup name=&quot;bill&quot;&gt;
      &lt;xsd:attribute name=&quot;bob&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;/xsd:attributeGroup&gt;
When we compose the &quot;set&quot; of {attribute uses} for fred, should we only include 
the attribute use for &quot;bob&quot; once? Or does the final set of {attribute uses} 
contain 2 duplicate attribute uses for &quot;bob&quot; and result in an error according 
to constraint 2, section 3.6.6?

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0003.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5938</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 02:51:46 +0000</bug_when>
    <thetext>The WG decided (at the 12/20/2001 telecon) that the example is in error. An 
erratum will be created to clarify what it means to do the union operation to 
obtain the final {attribute uses}.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15205</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-05-25 13:50:31 +0000</bug_when>
    <thetext>Discussed at 2007-05-18 telecon. The WG agreed to the decision mentioned in comment #1. The require wording comes dangerously close to schema composition and component identity. The WG didn&apos;t feel it is feasible to fix it in schema 1.1.

The WG decided to marking this issue as LATER, meaning it *may* be dealt with in a future schema release after 1.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>