<?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>5263</bug_id>
          
          <creation_ts>2007-11-12 10:34:07 +0000</creation_ts>
          <short_desc>Errors in the S4SD</short_desc>
          <delta_ts>2008-02-08 23:38:56 +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.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>S4SD cluster</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</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>17667</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-11-12 10:34:07 +0000</bug_when>
    <thetext>In the schema for schema documents published as Appendix A, there are three references to types that are missing the xs: prefix.

(a) in

  &lt;xs:complexType name=&quot;assertion&quot;&gt;
    &lt;xs:complexContent&gt;
      &lt;xs:extension base=&quot;xs:annotated&quot;&gt;       
        &lt;xs:attribute name=&quot;test&quot; type=&quot;string&quot;/&gt;
        &lt;xs:attribute name=&quot;xpathDefaultNamespace&quot; type=&quot;xs:xpathDefaultNamespace&quot;/&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

the first attribute should have type=&quot;xs:string&quot;

(b) in 

  &lt;xs:complexType name=&quot;altType&quot;&gt;
    &lt;xs:annotation&gt;
      &lt;xs:documentation&gt;
        This type is used for &apos;alternative&apos; elements.
      &lt;/xs:documentation&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:complexContent&gt;
      &lt;xs:extension base=&quot;xs:annotated&quot;&gt;
        &lt;xs:choice minOccurs=&quot;0&quot;&gt;
          &lt;xs:element ref=&quot;xs:simpleType&quot;/&gt;
          &lt;xs:element ref=&quot;xs:complexType&quot;/&gt;
        &lt;/xs:choice&gt;
        &lt;xs:attribute name=&quot;test&quot; type=&quot;string&quot; use=&quot;optional&quot;/&gt;
        &lt;xs:attribute name=&quot;type&quot; type=&quot;QName&quot; use=&quot;optional&quot;/&gt;
        &lt;xs:attribute name=&quot;xpathDefaultNamespace&quot; type=&quot;xs:xpathDefaultNamespace&quot;/&gt;
        &lt;xs:attribute name=&quot;id&quot; type=&quot;xs:ID&quot;/&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

the first two attributes should have type xs:string and xs:QName respectively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17669</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-11-12 10:46:14 +0000</bug_when>
    <thetext>Furthermore, in the definition of altType, the definition of the id attribute should be removed, because it is a duplicate (it is already present in the type being extended).

(Actually, the spec is open to interpretation here. The set of attribute uses is formed as a union of the attribute uses defined on the base type and the extended type, and the concept of union depends on the concept of component identity which is not clearly defined. If the two attribute uses are considered to be identical, then the union contains only one copy, so there is no error. But the validity of the S4SD shouldn&apos;t depend on this interpretation.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18873</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-02-08 02:20:08 +0000</bug_when>
    <thetext>A wording proposal including changes for this issue went to the WG
on 7 February 2008:

  http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.consent.200801.html#composition

(member-only link).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18947</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-02-08 23:38:56 +0000</bug_when>
    <thetext>The wording proposal mentioned in comment #2 was accepted by the
WG today.  Accordingly, I&apos;m marking this issue resolved.

Michael, if you would check to make sure the changes do resolve
the problem, and indicate your result by either closing or
reopening the issue, it would be helpful.  Thanks.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>