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

[Bug 2187] R-194: Question re: processContents=skip #2

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 18:51:09 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EFcLd-0000Ca-Fr@wiggum.w3.org>


           Summary: R-194: Question re: processContents=skip #2
           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

Suppose the instance contains: 

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

And the relevant parts of the schema are: 

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

In this case, "salary" matches the wildcard with "skip". Now, it's clear 
that "salary" 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 "base" and "bonus" above), even if we can find declarations 
for them. I think this is implied by the definition of "skip" 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
Received on Wednesday, 14 September 2005 18:51:11 UTC

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