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
Message-Id: <E1EFcKR-0000Ae-8k@wiggum.w3.org>


           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: 

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

schema fragment: 

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

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 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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC