<?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>11230</bug_id>
          
          <creation_ts>2010-11-05 08:56:33 +0000</creation_ts>
          <short_desc>src-ta should have a similar wording as src-element.3</short_desc>
          <delta_ts>2010-11-26 18:19:54 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Meissl">am_spamfaenger</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>sandygao</cc>
          
          <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>42165</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Meissl">am_spamfaenger</who>
    <bug_when>2010-11-05 08:56:33 +0000</bug_when>
    <thetext>Schema for schemas doesn&apos;t allow both a &lt;simpleType&gt; and a &lt;complexType&gt; as child for &lt;alternative&gt;, there only can be one of them at the same time. Therefore I suggest to change the wording of src-ta to something similar to src-element.3.

Instead of:

&quot;every &lt;alternative&gt; element must have a type attribute, or a complexType child element, or a simpleType child element. Each &lt;alternative&gt; element must have one and only one of these.&quot;

I suggest to use something like:

&quot;every &lt;alternative&gt; element must not have both a &lt;simpleType&gt; or &lt;complexType&gt; child and a type attribute.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42171</commentid>
    <comment_count>1</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-11-05 09:40:43 +0000</bug_when>
    <thetext>In Lyon:

The WG discussed this issue, and notes that the wording has led to confusion.

The proposed improved wording is:

&quot;each &lt;alternative&gt; element must have one (and only one) of the following: a type attribute, or a complexType child element, or a simpleType child element.&quot;

Thank you for the comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42175</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Meissl">am_spamfaenger</who>
    <bug_when>2010-11-05 11:05:45 +0000</bug_when>
    <thetext>I think my comment wasn&apos;t clear enough. The minor problem I see in the spec is the difference between src-element clause 3 and src-ta. Both are about the very same thing: 

An &lt;element&gt; / &lt;alternative&gt; must not have both a type attribute and a &lt;complexType&gt; or &lt;simpleType&gt; child. Schema for schemas only allows either a &lt;complexType&gt; or &lt;simpleType&gt; but not both. So the schema representation constraint only needs to forbid a type attribute in combination with a &lt;complexType&gt;/&lt;simpleType&gt; child. 

If the schema representation constraint is even more strict it&apos;s okay, but i think there should be no difference between how it is worded in src-element clause 3 and in src-ta, because both are about exactly the same problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42644</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2010-11-20 02:33:55 +0000</bug_when>
    <thetext>The difference between &lt;element&gt; and &lt;alternative&gt; is that &lt;alternative&gt; needs exactly one of the 3 things (type attribute, &lt;simpleType&gt; child, or &lt;complexType&gt; child), while &lt;element&gt; is allowed to have none (in which case it defaults to &quot;anyType&quot; or from its &quot;substitution group affiliation&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42772</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Meissl">am_spamfaenger</who>
    <bug_when>2010-11-25 12:15:48 +0000</bug_when>
    <thetext>Sorry, I didn&apos;t see this difference. Thank you for your explanation. The difference in the wording now makes sense to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42800</commentid>
    <comment_count>5</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2010-11-26 18:19:54 +0000</bug_when>
    <thetext>The change described in comment 1 has now been made in the member-accessible status-quo versions of the document.   Accordingly I&apos;m marking the issue resolved.

Judging by comment 4, I&apos;m guessing that Andreas Meissl, as the originator of the issue, will have no objections to this resolution of the issue.  If that&apos;s so, please indicate as much by closing the issue.  If for some reason you&apos;re not happy with this resolution, please indicate by re-opening the issue and explaining what&apos;s wrong and what would be required to close the issue in your view.  If the WG doesn&apos;t hear from you in the next couple of weeks, we&apos;ll assume you&apos;re happy and close the issue on your behalf. 

Thank you in any case for your interest in the spec and for your review.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>