This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2186 - R-193: Question re: processContents=skip
Summary: R-193: Question re: processContents=skip
Status: NEW
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: David Ezell
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: needsDrafting
: 2163 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-14 18:49 UTC by Sandy Gao
Modified: 2012-12-04 00:53 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-14 18:49:55 UTC
Consider the following example: 

instance doc fragment: 

     <person>
          <salary xsi:type='xs:integer'>Hello<salary>
     <person>

schema fragment: 

    <xs:element name="person">
     <xs:complexType>
      <xs:sequence>
          <xs:any processContents="skip" maxOccurs='unbounded'/>
      <xs:sequence>
     <xs:complexType>
    <xs:element>

The element "salary" matches the wildcard with processContents of skip within 
the content model of "person". However, the element in the instance has an 
xsi:type specified. The question is: should a processor attempt to 
validate "salary" against the integer type? Schema Validity Assessment 
(Element) [1] would seem to indicate "yes" because clause 1.2 appears to be 
satisfied (via 1.2.1.2). Is this correct? If not, what did I miss? If so, was 
this the intention? 

[1] http://www.w3.org/TR/xmlschema-1/#cvc-assess-elt 

See: http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Nov/0281.html
Comment 1 Sandy Gao 2005-09-14 18:50:10 UTC
Henry's response:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Nov/0290.html 

Resolution:
Discussed at the March 13, 2003 telecon.
Comment 2 Sandy Gao 2005-09-14 19:49:52 UTC
*** Bug 2163 has been marked as a duplicate of this bug. ***