- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 14 Sep 2005 18:51:09 +0000
- To: www-xml-schema-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2187 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: <person> <salary> <base xsi:type='xs:integer'>Hello<base> <bonus>Hello<bonus> <salary> <person> And the relevant parts of the schema are: <xs:element name="person"> <xs:complexType> <xs:sequence> <xs:any processContents="skip" maxOccurs='unbounded'/> <xs:sequence> <xs:complexType> <xs:element> <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