Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_protocolXSDs / MGW / IntegratedSite_HK84933.xsd
CommitLineData
970ed795
EL
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
d44e3c4f 3 Copyright (c) 2000-2016 Ericsson Telecom AB
970ed795
EL
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
d44e3c4f 8
9 Contributors:
10 Balasko, Jeno
11 Raduly, Csaba
12-->
970ed795
EL
13<xs:schema targetNamespace="http://www.ericsson.com/is/isco/IntegratedSite/R4L06/R4AB_1.02"
14 xmlns:IntegratedSite="http://www.ericsson.com/is/isco/IntegratedSite/R4L06/R4AB_1.02"
15 xmlns="http://www.ericsson.com/is/isco/IntegratedSite/R4L06/R4AB_1.02"
16 xmlns:xs="http://www.w3.org/2001/XMLSchema"
17 elementFormDefault="qualified"
18 attributeFormDefault="unqualified"
19 xml:lang="en">
20<!--
21 This is a cut-down version of IntegratedSite.xsd, just to illustrate
22 the bug in HK84933.
23 See regression_test/xsdConvert/MGW/IntegratedSite.xsd in its full
24 3700+ line glory.
25-->
26
27<!-- removed namespaces
28 xmlns:confd="http://tail-f.com/ns/confd/1.0"
29 xmlns:IsTypes="http://www.ericsson.com/is/isco/IsTypes/R4L06/R4AB_1.02"
30-->
31
32<!--
33 <xs:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="XMLSchema.xsd"/>
34 <xs:import namespace="http://tail-f.com/ns/confd/1.0" schemaLocation="confd.xsd"/>
35 <xs:import namespace="http://www.ericsson.com/is/isco/IsTypes/R4L06/R4AB_1.02" schemaLocation="IsTypes.xsd"/>
36-->
37
38 <!-- This is the cut-down version of IntegratedSite. The original has 3200 lines!
39 This uses an unnamed (complex)type.
40 -->
41 <xs:element name="IntegratedSite">
42 <xs:complexType>
43 <xs:sequence>
44 <xs:element name="BladeSystems">
45 <xs:complexType>
46 <xs:sequence>
47 <xs:element name="BladeSystem" minOccurs="0" maxOccurs="unbounded">
48 <!-- The unnamed type -->
49 <xs:complexType>
50 <xs:sequence>
51 <xs:element name="number" type="xs:integer" minOccurs="0">
52 <xs:annotation>
53 <xs:appinfo/>
54 </xs:annotation>
55 </xs:element>
56 </xs:sequence>
57 </xs:complexType>
58 <xs:key name="key_IntegratedSite_BladeSystems_BladeSystem_Blade">
59 <xs:selector xpath="IntegratedSite:Blade"/>
60 <xs:field xpath="IntegratedSite:subrackId"/>
61 <xs:field xpath="IntegratedSite:slotNo"/>
62 </xs:key>
63 </xs:element>
64 </xs:sequence>
65 </xs:complexType>
66 <xs:key name="key_IntegratedSite_BladeSystems_BladeSystem">
67 <xs:selector xpath="IntegratedSite:BladeSystem"/>
68 <xs:field xpath="IntegratedSite:name"/>
69 </xs:key>
70 </xs:element>
71
72 </xs:sequence>
73 </xs:complexType>
74 </xs:element>
75
76 <!-- This is the reimplementation of IntegratedSite,
77 which uses a named top-level type.
78 -->
79 <xs:element name="IntegratedSite2">
80 <xs:complexType>
81 <xs:sequence>
82 <xs:element name="BladeSystems2">
83 <xs:complexType>
84 <xs:sequence>
85 <xs:element name="BladeSystem2" type="BladeSystem2" minOccurs="0" maxOccurs="unbounded">
86 </xs:element>
87 </xs:sequence>
88 </xs:complexType>
89 </xs:element>
90 </xs:sequence>
91 </xs:complexType>
92 </xs:element>
93
94
95 <xs:complexType name="BladeSystem2">
96 <xs:sequence>
97 <xs:element name="number" type="xs:integer" maxOccurs="1" minOccurs="0"></xs:element>
98 </xs:sequence>
99 </xs:complexType>
100</xs:schema>
This page took 0.029219 seconds and 5 git commands to generate.