Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / list.xsd
CommitLineData
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"
11xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12xmlns:ns="www.example.org/list"
13targetNamespace="www.example.org/list">
14
15<!-- helper union types -->
16<xsd:simpleType name="myUnionAttr">
17 <xsd:union memberTypes="xsd:integer xsd:boolean"/>
18</xsd:simpleType>
19
20<xsd:simpleType name="myUnionChildren">
21 <xsd:union>
22 <xsd:simpleType>
23 <xsd:restriction base="string"/>
24 </xsd:simpleType>
25 <xsd:simpleType>
26 <xsd:restriction base="float"/>
27 </xsd:simpleType>
28 </xsd:union>
29</xsd:simpleType>
30
31
32
33<!-- list defined by itemType attribute -->
34<xsd:simpleType name="listByAttribute">
35 <xsd:list itemType="xsd:integer"/>
36</xsd:simpleType>
37
38
39<!-- list defined by atomic child element -->
40<xsd:simpleType name="listByAtomicChild">
41 <xsd:list>
42 <xsd:simpleType>
43 <xsd:restriction base="xsd:float"/>
44 </xsd:simpleType>
45 </xsd:list>
46</xsd:simpleType>
47
48<!-- list defined by unnamed union child element -->
49<xsd:simpleType name="listByUnionAttribChild">
50 <xsd:list>
51 <xsd:simpleType>
52 <xsd:union memberTypes="xsd:integer xsd:boolean"/>
53 </xsd:simpleType>
54 </xsd:list>
55</xsd:simpleType>
56
57<!-- list defined by named union child element -->
58<xsd:simpleType name="listByUnionElemChild">
59 <xsd:list>
60 <xsd:simpleType>
61 <xsd:union>
62 <xsd:simpleType>
63 <xsd:restriction base="string"/>
64 </xsd:simpleType>
65 <xsd:simpleType>
66 <xsd:restriction base="float"/>
67 </xsd:simpleType>
68 </xsd:union>
69 </xsd:simpleType>
70 </xsd:list>
71</xsd:simpleType>
72
73<!-- lists defined by refernced unnamed union child element -->
74<xsd:simpleType name="listByAttributeRef1">
75 <xsd:list itemType="ns:myUnionAttr"/>
76</xsd:simpleType>
77
78<xsd:simpleType name="listByAttributeRef2">
79 <xsd:list itemType="ns:myUnionChildren"/>
80</xsd:simpleType>
81
82
83</schema>
This page took 0.030697 seconds and 5 git commands to generate.