Commit | Line | Data |
---|---|---|
970ed795 | 1 | <!-- |
3abe9331 | 2 | Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | |
4 | All rights reserved. This program and the accompanying materials | |
5 | are made available under the terms of the Eclipse Public License v1.0 | |
6 | which accompanies this distribution, and is available at | |
7 | http://www.eclipse.org/legal/epl-v10.html | |
8 | --> | |
9 | <schema xmlns="http://www.w3.org/2001/XMLSchema" | |
10 | xmlns:ns40="www.XmlTest.org/complex_choice" | |
11 | targetNamespace="www.XmlTest.org/complex_choice"> | |
12 | <annotation> | |
13 | <documentation xml:lang="en"> | |
14 | This documentum tests based on | |
15 | XML Schema Part 0: Primer Second Edition | |
16 | 2.7 Building Content models | |
17 | </documentation> | |
18 | </annotation> | |
19 | ||
20 | <complexType name="Lesson"> | |
21 | <choice> | |
22 | <element name="English" type="string"/> | |
23 | <element name="Math" type="string"/> | |
24 | <group ref="ns40:Nature"/> | |
25 | <group ref="ns40:Lab"/> | |
26 | </choice> | |
27 | <attribute name="Starts" type="time"/> | |
28 | </complexType> | |
29 | ||
30 | <group name="Nature"> | |
31 | <choice> | |
32 | <element name="Physics" type="string"/> | |
33 | <element name="Chemistry" type="string"/> | |
34 | </choice> | |
35 | </group> | |
36 | ||
37 | <group name="Lab"> | |
38 | <sequence> | |
39 | <element name="Measurement" type="string"/> | |
40 | <element name="Evaluation" type="string"/> | |
41 | </sequence> | |
42 | </group> | |
43 | ||
44 | <element name="MyLessonElement" type="ns40:Lesson"/> | |
45 | ||
46 | <complexType name="Lesson2"> | |
47 | <choice> | |
48 | <element name="English" type="string"/> | |
49 | <element name="Math" type="string"/> | |
50 | <choice id="Nature"> | |
51 | <element name="Physics" type="string"/> | |
52 | <element name="Chemistry" type="string"/> | |
53 | </choice> | |
54 | <sequence id="Lab"> | |
55 | <element name="Measurement" type="string"/> | |
56 | <element name="Evaluation" type="string"/> | |
57 | </sequence> | |
58 | </choice> | |
59 | <attribute name="Starts" type="time"/> | |
60 | </complexType> | |
61 | ||
62 | <complexType name="Lesson3"> | |
63 | <choice> | |
64 | <element name="English" type="string"/> | |
65 | <element name="Math" type="string"/> | |
66 | <element name="Nature"> | |
67 | <complexType> | |
68 | <choice> | |
69 | <element name="Physics" type="string"/> | |
70 | <element name="Chemistry" type="string"/> | |
71 | </choice> | |
72 | </complexType> | |
73 | </element> | |
74 | <element name="Lab"> | |
75 | <complexType> | |
76 | <sequence> | |
77 | <element name="Measurement" type="string"/> | |
78 | <element name="Evaluation" type="string"/> | |
79 | </sequence> | |
80 | </complexType> | |
81 | </element> | |
82 | </choice> | |
83 | <attribute name="Starts" type="time"/> | |
84 | </complexType> | |
85 | ||
86 | </schema> |