W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2186] R-193: Question re: processContents=skip

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 18:49:55 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EFcKR-0000Ae-8k@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2186

           Summary: R-193: Question re: processContents=skip
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 1: Structures
        AssignedTo: ht@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


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
Received on Wednesday, 14 September 2005 18:50:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT