-
Notifications
You must be signed in to change notification settings - Fork 18
/
any6_1.xsd
36 lines (31 loc) · 1 KB
/
any6_1.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<!--
Content model error:
any-err-not-determinist-1.xsd:29: element complexType: Schemas parser error :
local complex type: The content model is not determinist.
As per Xerces and XSV this schema is OK.
The problem appears when the maxOccurs of <bar> is greater than
the one of the <any> wildcard. Additionally if both are "unbounded".
If the latter is a different issue we should add an explicit test
for it.
Examples:
<bar> <any> result
2 1 error
2 2 OK
1 2 OK
unbounded 2 error
unbounded unbounded error
2 unbounded OK
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:test:foo"
elementFormDefault="qualified">
<xs:element name="foo">
<xs:complexType>
<xs:sequence>
<xs:element name="bar" maxOccurs="2"/>
<xs:any namespace="##other" maxOccurs="1" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>