<?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>13186</bug_id>
          
          <creation_ts>2011-07-09 17:23:24 +0000</creation_ts>
          <short_desc>editorial improvement: Constraints on XML Representations of Complex Type Definitions</short_desc>
          <delta_ts>2011-12-29 02:29:01 +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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mukul Gandhi">gandhi.mukul</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</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>50861</commentid>
    <comment_count>0</comment_count>
    <who name="Mukul Gandhi">gandhi.mukul</who>
    <bug_when>2011-07-09 17:23:24 +0000</bug_when>
    <thetext>I&apos;m reading the latest editor&apos;s draft of the XML Schema 1.1 Structures spec.

In the section, 

3.4.3 Constraints on XML Representations of Complex Type Definitions

it&apos;s said:

2 If &lt;restriction&gt; is present under &lt;simpleContent&gt;, then the [children] of &lt;restriction&gt; must not include any two elements with the same expanded name in the Schema (xs) namespace, unless that expanded name is one of xs:enumeration, xs:pattern, or xs:assert.

This seems to be missing the component xs:assertion in the list. Therefore this should be something like following, 

2 If &lt;restriction&gt; is present under &lt;simpleContent&gt;, then the [children] of &lt;restriction&gt; must not include any two elements with the same expanded name in the Schema (xs) namespace, unless that expanded name is one of xs:enumeration, xs:pattern, xs:assertion or xs:assert.


Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50890</commentid>
    <comment_count>1</comment_count>
    <who name="Mukul Gandhi">gandhi.mukul</who>
    <bug_when>2011-07-11 03:44:29 +0000</bug_when>
    <thetext>I think the text I cited from spec should additionally include, xs:attribute and xs:attributeGroup as well.

Therefore the XML representation of complexType as cited from the spec, may be modified to following, 

&lt;proposed&gt;
2 If &lt;restriction&gt; is present under &lt;simpleContent&gt;, then the [children] of
&lt;restriction&gt; must not include any two elements with the same expanded name in
the Schema (xs) namespace, unless that expanded name is one of xs:enumeration,
xs:pattern, xs:assertion, xs:attribute, xs:attributeGroup or xs:assert.
&lt;/proposed&gt;

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51653</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-07-28 16:21:50 +0000</bug_when>
    <thetext>One problem with explicit lists of what can appear more than once is that they are so easy to get wrong (as this issue illustrates); another is that once the list is correct, the organizing principle may be unclear (which seems to me to be illustrated again here).  So I propose a different change in wording to make the underlying principle clearer.  How about

  2 If &lt;restriction&gt; is present under &lt;simpleContent&gt;, then no
  facet-specifying element other than xs:pattern, xs:enumeration,
  or xs:assertion may appear more than once.

This amounts to the same thing but is slightly clearer on what&apos;s going on, I hope.

Also, we noticed in discussion that 3.16.3 needs to have references to xs:assert replaced with references to xs:assertion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51654</commentid>
    <comment_count>3</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-07-28 16:23:12 +0000</bug_when>
    <thetext>Resolved:  adopt the wording in comment #2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51748</commentid>
    <comment_count>4</comment_count>
    <who name="Mukul Gandhi">gandhi.mukul</who>
    <bug_when>2011-07-29 13:50:02 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; One problem with explicit lists of what can appear more than once is that they
&gt; are so easy to get wrong (as this issue illustrates); another is that once the
&gt; list is correct, the organizing principle may be unclear (which seems to me to
&gt; be illustrated again here).  So I propose a different change in wording to make
&gt; the underlying principle clearer.  How about
&gt; 
&gt;   2 If &lt;restriction&gt; is present under &lt;simpleContent&gt;, then no
&gt;   facet-specifying element other than xs:pattern, xs:enumeration,
&gt;   or xs:assertion may appear more than once.
&gt; 
&gt; This amounts to the same thing but is slightly clearer on what&apos;s going on, I
&gt; hope.
&gt; 
&gt; Also, we noticed in discussion that 3.16.3 needs to have references to
&gt; xs:assert replaced with references to xs:assertion.

Thanks, Michael. The modified wordings proposed by you look nice to me as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62120</commentid>
    <comment_count>5</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-12-29 02:29:01 +0000</bug_when>
    <thetext>The change adopted in July has now been integrated into the status quo document at https://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.html#sec-src-ct (member-accessible link).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>