Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!-- | |
3abe9331 | 3 | Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
4 | |
5 | All rights reserved. This program and the accompanying materials | |
6 | are made available under the terms of the Eclipse Public License v1.0 | |
7 | which accompanies this distribution, and is available at | |
8 | http://www.eclipse.org/legal/epl-v10.html | |
9 | --> | |
10 | <schema xmlns="http://www.w3.org/2001/XMLSchema" | |
11 | xmlns:ns="www.example.org/all" | |
12 | targetNamespace="www.example.org/all"> | |
13 | ||
14 | <attribute name="attrGlobal" type="token"/> | |
15 | ||
16 | <attributeGroup name="attrGroup"> | |
17 | <attribute name="attrInGroup2" type="token"/> | |
18 | <attribute name="attrInGroup1" type="token"/> | |
19 | </attributeGroup> | |
20 | ||
21 | ||
22 | <annotation><documentation xml:lang="EN">All, mandatory</documentation></annotation> | |
23 | ||
24 | <complexType name="e29a"> | |
25 | <all> | |
26 | <element name="foo" type="integer"/> | |
27 | <element name="bar" type="float"/> | |
28 | <element name="ding" type="string"/> | |
29 | </all> | |
30 | </complexType> | |
31 | ||
32 | <simpleType name="e29simple"> | |
33 | <restriction base="integer"/> | |
34 | </simpleType> | |
35 | ||
36 | <element name="e29aAndAttributes" type="ns:e29aAndAttributes"/> | |
37 | <complexType name="e29aAndAttributes"> | |
38 | <all> | |
39 | <element name="foo" type="integer"/> | |
40 | <element name="bar" type="float"/> | |
41 | <element name="ding" type="string"/> | |
42 | </all> | |
43 | <attribute name="attrLocal" type="integer"/> | |
44 | <attribute ref="ns:attrGlobal"/> | |
45 | <attributeGroup ref="ns:attrGroup"/> | |
46 | </complexType> | |
47 | ||
48 | <annotation><documentation xml:lang="EN">All, optional</documentation></annotation> | |
49 | ||
50 | <complexType name="e29bAndAttributes"> | |
51 | <all minOccurs="0"> | |
52 | <element name="foo" type="integer"/> | |
53 | <element name="bar" type="float"/> | |
54 | <element name="ding" type="string"/> | |
55 | </all> | |
56 | <attribute name="attrLocal" type="ns:e29simple"/> | |
57 | <attribute ref="ns:attrGlobal"/> | |
58 | <attributeGroup ref="ns:attrGroup"/> | |
59 | </complexType> | |
60 | ||
61 | <annotation><documentation xml:lang="EN">All, some elements are optional</documentation></annotation> | |
62 | ||
63 | <complexType name="e29cAndAttributes"> | |
64 | <all> | |
65 | <element name="foo" type="integer"/> | |
66 | <element name="bar" type="float" minOccurs="0"/> | |
67 | <element name="ding" type="string"/> | |
68 | </all> | |
69 | <attribute name="attrLocal" type="integer"/> | |
70 | <attribute ref="ns:attrGlobal"/> | |
71 | <attributeGroup ref="ns:attrGroup"/> | |
72 | </complexType> | |
73 | ||
74 | </schema> |