- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 14 Sep 2005 18:49:55 +0000
- To: www-xml-schema-comments@w3.org
- Cc:
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 UTC