Blame view

config/xsd/info/paramInfo.xsd 3.76 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:element name="param" type="paramType"></xs:element>
    
    <xs:complexType name="paramType">
    	<xs:sequence>
    		<xs:element name="info" type="paramInfoType" minOccurs="0" maxOccurs="1"></xs:element>
    		<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"></xs:any>
    	</xs:sequence>
    	<xs:anyAttribute processContents="skip"></xs:anyAttribute>
    </xs:complexType>

	<xs:element name="TableDef" abstract="true" />

	<xs:attributeGroup name="TableGroup">
		<xs:attribute name="dim" type="xs:int" />
 		<xs:attribute name="name" type="xs:string" />
		<xs:attribute name="units" type="xs:string" />
f2db3c16   Benjamin Renard   Support variable ...
20
		<xs:attribute name="variable" type="xs:boolean" />
fbe3c2bb   Benjamin Renard   First commit
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
    </xs:attributeGroup>

	<xs:element name="boundsTable" substitutionGroup="TableDef">
		<xs:complexType>
			<xs:attributeGroup ref="TableGroup" />
			<xs:attribute name="boundsName" type="xs:string" use="required" />
		</xs:complexType>
	</xs:element>
	
	<xs:element name="minMaxTable" substitutionGroup="TableDef">
		<xs:complexType>
			<xs:attributeGroup ref="TableGroup" />
			<xs:attribute name="minName" type="xs:string" use="required" />
			<xs:attribute name="maxName" type="xs:string" use="required" />
		</xs:complexType>
	</xs:element>
	
	<xs:element name="centerTable" substitutionGroup="TableDef">
		<xs:complexType>
			<xs:attributeGroup ref="TableGroup" />
			<xs:attribute name="centerName" type="xs:string" use="required" />
			<xs:attribute name="size" type="xs:double" use="required" />
		</xs:complexType>
	</xs:element>
	
f5c53312   Benjamin Renard   Get calib info in...
46
47
48
49
50
51
52
53
	<xs:element name="centerWidthTable" substitutionGroup="TableDef">
		<xs:complexType>
			<xs:attributeGroup ref="TableGroup" />
			<xs:attribute name="centerName" type="xs:string" use="required" />
			<xs:attribute name="widthName" type="xs:string" use="required" />
		</xs:complexType>
	</xs:element>
	
65c661e8   Benjamin Renard   Table definition ...
54
55
56
57
58
59
60
61
	<xs:element name="centerAutoTable" substitutionGroup="TableDef">
		<xs:complexType>
			<xs:attributeGroup ref="TableGroup" />
			<xs:attribute name="centerName" type="xs:string" use="required" />
			<xs:attribute name="log" type="xs:boolean" use="required" />
		</xs:complexType>
	</xs:element>
	
fbe3c2bb   Benjamin Renard   First commit
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
93
94
95
96
97
98
99
100
101
102
	<xs:attributeGroup name="StatusGroup">
      <xs:attribute name="minVal" type="xs:double" />
      <xs:attribute name="maxVal" type="xs:double" />
      <xs:attribute name="name"   type="xs:string" />
    </xs:attributeGroup>

    <xs:complexType name="paramInfoType">
    	<xs:sequence>
    		<xs:element name="name" type="xs:string"></xs:element>
    		<xs:element name="short_name" type="xs:string"></xs:element>
            <xs:element name="components" type="xs:string"></xs:element>
            <xs:element name="units" type="xs:string"></xs:element>
    		<xs:element name="coordinates_system" type="xs:string"></xs:element>
    		<xs:element name="tensor_order" type="xs:string"></xs:element>
    		<xs:element name="si_conversion" type="xs:string"></xs:element>
    		<xs:element name="table" minOccurs="0" maxOccurs="1">
				<xs:complexType>
					<xs:sequence>
						<xs:element ref="TableDef" minOccurs="1"
							maxOccurs="unbounded" />
					</xs:sequence>
				</xs:complexType>
			</xs:element>
    		<xs:element name="fill_value" type="xs:string"></xs:element>
    		<xs:element name="ucd" type="xs:string"></xs:element>
    		<xs:element name="status_def" minOccurs="0" maxOccurs="1">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="status" minOccurs="1"
							maxOccurs="unbounded" >
							<xs:complexType>
								<xs:attributeGroup ref="StatusGroup" />
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
    		<xs:element name="dataset_id" type="xs:string"></xs:element>
    	</xs:sequence>
    </xs:complexType>
</xs:schema>