<?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>2199</bug_id>
          
          <creation_ts>2005-09-14 19:05:47 +0000</creation_ts>
          <short_desc>R-207: Question about wildcard restriction</short_desc>
          <delta_ts>2009-04-21 19:21:36 +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>important, easy, restriction cluster</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>
          
          
          <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>6216</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:05:47 +0000</bug_when>
    <thetext>Is the following restriction valid: 
 
 BASE: 
 &lt;xs:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;&gt; 
   &lt;xs:any namespace=&quot;##any&quot; processContents=&quot;skip&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
 &lt;xs:sequence&gt; 
 
 DERIVED: 
 &lt;xs:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;&gt; 
       &lt;xs:element name=&quot;A&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot; /&gt; 
       &lt;xs:element name=&quot;B&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot; /&gt; 
 &lt;xs:sequence&gt;

From Schema Component Constraint: Particle Derivation OK 
(All:All,Sequence:Sequence -- Recurse)

2 There is a complete order-preserving functional mapping from the particles in 
the {particles} of R to the particles in the {particles} of B such that all of 
the following must be true: ... 

[Definition:] A complete functional mapping is order-preserving if each 
particle r in the domain R maps to a particle b in the range B which follows 
(not necessarily immediately) the particle in the range B mapped to by the 
predecessor of r, if any, where &quot;predecessor&quot; and &quot;follows&quot; are defined with 
respect to the order of the lists which constitute R and B. &quot; 

See the following for Henry&apos;s answer and subsequent thread
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0057.html

See also the following related mail: http://lists.w3.org/Archives/Public/www-
xml-schema-comments/2003OctDec/0023.html and 
http://lists.w3.org/Archives/Public/xmlschema-dev/2003Oct/0026.html

And, see the following related mail: http://lists.w3.org/Archives/Public/www-
xml-schema-comments/2004JanMar/0037.html and 
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2004JanMar/0044.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11877</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-19 20:05:14 +0000</bug_when>
    <thetext>This question appears to be answered, now, by the validation rule
Content Type Restricts.  Every sequence of elements locally valid 
against the derived type is locally valid against the base, and
the mapping Test[ES,Base](E) subsumes the mapping Test[ES,Derived](E)
for all elements E in all element sequences ES.

Is this issue now ready to be closed without action?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12625</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-27 20:56:41 +0000</bug_when>
    <thetext>At its telcon of 27 October 2006, the Working Group agreed to close
this issue for 1.1, and open a parallel issue for 1.0 (bug 3870)
which will remain open.

The rationale for closing the issue is that it relates to the 
constructive rules for checking restriction, which are no longer part 
of 1.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>