ind2uceConstant.xsd 1.46 KB
Newer Older
Raj Shah's avatar
Raj Shah committed
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
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant"
	elementFormDefault="qualified">

	<complexType name="ConstantStringType">
		<attribute name="value" type="string" use="required" />
	</complexType>
	<complexType name="ConstantNumberType">
		<attribute name="value" type="double" use="required" />
	</complexType>

	<complexType name="ConstantListType">
		<attribute name="value" use="required">
			<simpleType>
				<restriction base="string">
					<!-- comma seperated array, e.g., [1,2.0,'adf'] String in '', floating point with x.y -->
					<pattern value="\[([0-9](\.([0-9])+){0,1}|&quot;[A-Za-z0-9()+,-.=@;$_!*]*&quot;)(\s*,\s*([0-9](\.([0-9])+){0,1}|&quot;[A-Za-z0-9()+,-.=@;$_!*]*&quot;)+)*\]|\[\]"></pattern>
				</restriction>
			</simpleType>
		</attribute>
	</complexType>

	<element name="string" type="tns:ConstantStringType" />
	<element name="number" type="tns:ConstantNumberType" />
	<element name="object" type="tns:ConstantStringType" />
	<element name="list" type="tns:ConstantListType" />
	<element name="true" />
	<element name="false" />

	<group name="ConstantGroup">
		<choice>
			<element ref="tns:string" />
			<element ref="tns:number" />
			<element ref="tns:object" />
			<element ref="tns:list" />
			<element ref="tns:true" />
			<element ref="tns:false" />
		</choice>
	</group>

</schema>