blob: 5ebe4954327d599cde04b1fff6cf0dbe0abce5b7 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="ParameterType" abstract="true">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Name" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="ValueSpace" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Raw"/>
<xs:enumeration value="Real"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="BooleanParameterType">
<xs:simpleContent>
<xs:restriction base="ParameterType">
<xs:pattern value="([01][\s]*)+"/>
<xs:pattern value="((0x0|0x1)[\s]*)+"/>
<xs:attribute name="ValueSpace" use="prohibited"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="IntegerParameterType">
<xs:simpleContent>
<xs:restriction base="ParameterType">
<xs:pattern value="(0|([+-]?[1-9][0-9]*))(\s+(0|([+-]?[1-9][0-9]*)))*"/>
<xs:pattern value="(0x[0-9a-fA-F]+)(\s+(0x[0-9a-fA-F]+))*"/>
<xs:attribute name="ValueSpace" use="prohibited"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="EnumParameterType">
<xs:simpleContent>
<xs:restriction base="ParameterType">
<xs:attribute name="ValueSpace" use="prohibited"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FixedPointParameterType">
<xs:simpleContent>
<xs:restriction base="ParameterType">
<xs:pattern value="((0|[+-]?0\.[0-9]+|(([+-]?[1-9][0-9]*)(\.[0-9]+)?))(e[+-]?[0-9]+)?)(\s+(0|[+-]?0\.[0-9]+|(([+-]?[1-9][0-9]*)(\.[0-9]+)?))(e[+-]?[0-9]+)?)*"/>
<xs:pattern value="(0x[0-9a-fA-F]+)(\s+(0x[0-9a-fA-F]+))*"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="BitParameterBlockType">
<xs:sequence>
<xs:element name="BitParameter" maxOccurs="unbounded" type="IntegerParameterType"/>
</xs:sequence>
<xs:attribute name="Name" type="xs:NMTOKEN" use="required"/>
</xs:complexType>
<xs:complexType name="StringParameterType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Name" type="xs:NMTOKEN" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:group name="ParameterBlockGroup">
<xs:choice>
<xs:element name="BooleanParameter" type="BooleanParameterType"/>
<xs:element name="IntegerParameter" type="IntegerParameterType"/>
<xs:element name="EnumParameter" type="EnumParameterType"/>
<xs:element name="FixedPointParameter" type="FixedPointParameterType"/>
<xs:element name="BitParameterBlock" type="BitParameterBlockType">
<xs:unique name="BitParameterBlockSubElementsUniqueness">
<xs:selector xpath="*"/>
<xs:field xpath="@Name"/>
</xs:unique>
</xs:element>
<xs:element name="StringParameter" type="StringParameterType"/>
<xs:element name="Component" type="ParameterBlockType"/>
<xs:element name="ParameterBlock" type="ParameterBlockType">
<xs:unique name="ParameterBlockSubElementsUniqueness">
<xs:selector xpath="*"/>
<xs:field xpath="@Name"/>
</xs:unique>
</xs:element>
</xs:choice>
</xs:group>
<xs:complexType name="ParameterBlockType">
<xs:sequence>
<xs:group ref="ParameterBlockGroup" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Name" type="xs:NMTOKEN" use="required"/>
</xs:complexType>
</xs:schema>
|