VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/test/schemas/any6_1.xsd@ 95312

Last change on this file since 95312 was 95312, checked in by vboxsync, 2 years ago

libs/{curl,libxml2}: OSE export fixes, bugref:8515

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette