<?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>2544</bug_id>
          
          <creation_ts>2005-11-21 15:50:49 +0000</creation_ts>
          <short_desc>RQ-146: needs clarification re. wildcards</short_desc>
          <delta_ts>2009-04-21 19:21:41 +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>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>medium, work</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P4</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>
          <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>7243</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-11-21 15:50:49 +0000</bug_when>
    <thetext>Consider the following &quot;tricky&quot; indirect case involving a wildcard referencing 
a global element:

&lt;element name=&quot;a&quot; type=&quot;string&quot;/&gt;
&lt;complexType name=&quot;example-2&quot;&gt;
  &lt;sequence&gt;
    &lt;element name=&quot;a&quot; type=&quot;int&quot;/&gt;
    &lt;element name=&quot;whatever&quot;/&gt;
    &lt;any namespace=&quot;##targetNamespace&quot; processContents=&quot;lax&quot;/&gt;
  &lt;/sequence&gt;
&lt;/complexType&gt;

Clearly the local &lt;a&gt; and the indirect reference to the global &lt;a&gt; 
are &quot;inconsistent&quot; with each other within the content model of the above 
example but I&apos;m not sure if the &quot;directly, indirectly, or implicitly&quot; language 
in the EDC rule captures this case.

See mail from: David Bau
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003OctDec/0029.html

See reply from: Henry Thompson
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003OctDec/0030.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7244</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-11-21 15:54:20 +0000</bug_when>
    <thetext>Proposals to discharge this requirement also cover RQ-17.

This item was classified as Req in the meeting of 2004-03-12.

This item was discussed in the meeting of 2004-04-09, in connection with RQ-17..

This item was discussed at 2005-11-11 F2F meeting.

The summary of the current proposal:

-no change to the 1.0 formulation of EDC 
- in the PSVI, check each child element against the gi/type bindings directly, 
indirectly, or implicitly present in the content model; the type assigned to 
the child must be compatible (validly derived from) with that given in the 
bindings for its gi. There are three possibilities here:
  - This applies to all elements without exception (this means skip wildcards 
may induce errors if and when they [appear to] match elements with the same 
names as elements used explicitly elsewhere in the content model). (The so-
called level 3.) 
  - This applies to all elements which have types (skip wildcards won&apos;t induce 
errors, but xsi:type may). (The so-called level 2.) 
  - This applies only to those elements which match an element declaration 
(xsi:type won&apos;t induce errors). (The so-called level 1.) 
  (Let us call this check the EDC runtime check.) 
- The EDC runtime check must be integrated into the definition of local 
validity, to connect with the text now in 3.4.6. 

RESOLVED: to adopt the level 2 version of the constraint.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9969</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2006-06-12 16:32:49 +0000</bug_when>
    <thetext>*** Bug 2823 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12477</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-14 14:45:31 +0000</bug_when>
    <thetext>A proposal to resolve this issue has been placed on the server at 
http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.rq146.200610.html
(member-only link) for WG review and action.

The proposal introduces a &apos;dynamic&apos; EDC rule corresponding to the
static EDC (element declarations consistent) rule.  The static rule
requires that any two element declarations in a content model with 
the same namespace name and local name must have the same {type
definition}.  That type definition is the context-determined type
for elements whose name matches those element declarations.

The dynamic rule requires that any element accepted by the 
content model have a governing type validly substitutable
for the context-determined type.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14270</commentid>
    <comment_count>4</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-02-28 03:09:47 +0000</bug_when>
    <thetext>The proposal in comment 3 was adopted by the WG in the face to face
meeting in San Jose in October/November 2007.  This issue should have
been marked &apos;closed&apos; then.  It&apos;s late, but I&apos;m marking it resolved now.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>