<?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>2187</bug_id>
          
          <creation_ts>2005-09-14 18:51:09 +0000</creation_ts>
          <short_desc>R-194: Question re: processContents=skip #2</short_desc>
          <delta_ts>2012-08-23 00:10:57 +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.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsDrafting</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="David Ezell">David_E3</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>6196</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:51:09 +0000</bug_when>
    <thetext>Suppose the instance contains: 

   &lt;person&gt;
      &lt;salary&gt;
         &lt;base xsi:type=&apos;xs:integer&apos;&gt;Hello&lt;base&gt;
         &lt;bonus&gt;Hello&lt;bonus&gt;
      &lt;salary&gt;
   &lt;person&gt;

And the relevant parts of the schema are: 

    &lt;xs:element name=&quot;person&quot;&gt;
     &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
          &lt;xs:any processContents=&quot;skip&quot; maxOccurs=&apos;unbounded&apos;/&gt;
      &lt;xs:sequence&gt;
     &lt;xs:complexType&gt;
    &lt;xs:element&gt;
    &lt;xs:element name=&quot;bonus&quot; type=&quot;xs:integer&quot;/&gt;

In this case, &quot;salary&quot; matches the wildcard with &quot;skip&quot;. Now, it&apos;s clear 
that &quot;salary&quot; is not assessed and no validation outcome is computed for it. I 
have always assumed that this means no processing of the children of such an 
element (such as &quot;base&quot; and &quot;bonus&quot; above), even if we can find declarations 
for them. I think this is implied by the definition of &quot;skip&quot; in Section 3.10.1 
The Wildcard Schema Component [1], as well as the last note in section 5.2 
Assessing Schema-Validity[2]. Is there anywhere else in the Rec this is spelled 
out more explicitly? 

[1] http://www.w3.org/TR/xmlschema-1/#Wildcard_details 

[2] http://www.w3.org/TR/xmlschema-1/#validation_outcome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6197</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:51:20 +0000</bug_when>
    <thetext>Henry&apos;s response:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Nov/0291.html 

Resolution:
Discussed and classified at the May 13, 2003 telecon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6646</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-10-04 21:00:58 +0000</bug_when>
    <thetext>*** Bug 1936 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>