summaryrefslogtreecommitdiffstats
path: root/Schemas/Subsystem.xsd
blob: d418af7bcb605321b7b1ac197245d8553fb39909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2007 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:include schemaLocation="ComponentLibrary.xsd"/>
	<xs:complexType name="SubsystemType">
		<xs:sequence>
			<xs:element ref="ComponentLibrary"/>
			<xs:element name="InstanceDefinition">
				<xs:complexType>
					<xs:sequence>
						<xs:sequence maxOccurs="unbounded">
							<xs:group ref="ParameterBlockGroup"/>
						</xs:sequence>
					</xs:sequence>
				</xs:complexType>
				<xs:unique name="InstanceDefintionSubElementsUniqueness">
					<xs:selector xpath="*"/>
					<xs:field xpath="@Name"/>
				</xs:unique>
			</xs:element>
		</xs:sequence>
		<xs:attributeGroup ref="Nameable"/>
		<xs:attribute name="Endianness" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="Little"/>
					<xs:enumeration value="Big"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="Type" use="required"/>
		<xs:attribute name="Mapping" use="optional"/>
	</xs:complexType>
	<xs:element name="Subsystem" type="SubsystemType">
		<xs:keyref name="InstanceDefinitionComponentTypeNotFound" refer="ComponentTypeUniqueness">
			<xs:selector xpath="InstanceDefinition/Component"/>
			<xs:field xpath="@Type"/>
		</xs:keyref>
	</xs:element>
</xs:schema>