VirtualBox

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

最後變更 在這個檔案從102315是 95312,由 vboxsync 提交於 2 年 前

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

檔案大小: 1.0 KB
 
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>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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