- From: <bugzilla@jessica.w3.org>
- Date: Thu, 19 Jan 2012 03:46:59 +0000
- To: public-xml-schema-testsuite@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15618
Summary: maxOccous not allowed on openContent/any
Product: XML Schema Test Suite
Version: 2006-11-06
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Saxon tests
AssignedTo: cmsmcq@blackmesatech.com
ReportedBy: sandygao@ca.ibm.com
QAContact: public-xml-schema-testsuite@w3.org
Saxon test open042x.xsd has:
<xs:openContent>
<xs:any namespace="##other" processContents="lax" maxOccurs="unbounded"/>
</xs:openContent>
But according to the Appendix A [1], <xs:any> under <xs:openContent> can't
specify min/maxOccurs attributes.
(With irrelevant items omitted)
<xs:element name="openContent" id="openContent">
<xs:sequence>
<xs:element name="any" minOccurs="0" type="xs:wildcard"/>
</xs:sequence>
</xs:element>
<xs:complexType name="wildcard">
<xs:extension base="xs:annotated">
<xs:attributeGroup ref="xs:anyAttrGroup"/>
</xs:extension>
</xs:complexType>
where "xs:anyAttrGroup" doesn't allow min/maxOccurs attributes. These
attributes are included in the "xs:occurs" group, which is referenced by the
normal <any> element:
<xs:element name="any" id="any">
<xs:extension base="xs:wildcard">
<xs:attributeGroup ref="xs:occurs"/>
</xs:extension>
</xs:element>
[1] http://www.w3.org/TR/xmlschema11-1/#normative-schemaSchema
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 19 January 2012 03:47:01 UTC