Project

General

Profile

GUI.xsd

Tobias Wich, 06/13/2012 01:05 PM

Download (3.97 KB)

 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema xmlns="http://www.w3.org/2001/XMLSchema"
3
	xmlns:gui="http://ws.ecsec.de/gui/v1.0"
4
	targetNamespace="http://ws.ecsec.de/gui/v1.0"
5
	xmlns:xhtml="http://www.w3.org/1999/xhtml"
6
	xmlns:iso="urn:iso:std:iso-iec:24727:tech:schema"
7
	elementFormDefault="qualified" attributeFormDefault="unqualified">
8

    
9
	<!-- Including XHTML and ISO schema files. -->
10

    
11
	<import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"></import>
12
	<import namespace="urn:iso:std:iso-iec:24727:tech:schema" schemaLocation="../ISOCommon.xsd"></import>
13
	
14
	<!-- GUI-Interface -->
15

    
16
	<!-- ObtainUserConsent  -->
17

    
18
	<element name="ObtainUserConsent">
19
		<complexType>
20
			<complexContent>
21
				<extension base="iso:RequestType">
22
					<sequence>
23
						<element name="Title" type="string" />
24
						<element ref="gui:Step" maxOccurs="unbounded" minOccurs="1"></element>
25
					</sequence>
26
				</extension>
27
			</complexContent>
28
		</complexType>
29
	</element>
30

    
31
	<element name="Step">
32
		<complexType>
33
			<sequence maxOccurs="1" minOccurs="1">
34
				<element name="Name" type="string"></element>
35
				<element name="InfoUnit" maxOccurs="unbounded"
36
					minOccurs="1" type="gui:InfoUnitType">
37
				</element>
38
			</sequence>
39
		</complexType>
40
	</element>
41

    
42

    
43
	<!-- ObtainUserConsentResponse  -->
44

    
45
	<element name="ObtainUserConsentResponse">
46
		<complexType>
47
			<complexContent>
48
				<extension base="iso:ResponseType">
49
					<sequence>
50
					<element name="Output" type="gui:InfoUnitType" maxOccurs="unbounded" minOccurs="0"></element>
51
					</sequence>
52
				</extension>
53
			</complexContent>
54
		</complexType>
55
	</element>
56

    
57

    
58
<!-- XHTML-based InfoUnitType 
59

    
60
	<complexType name="XHTMLInfoUnitType">
61
		<choice>
62
			<element name="Text" type="string"></element>
63
			<element ref="xhtml:a"></element>
64
			<element ref="xhtml:input"></element>
65
			<element ref="xhtml:select"></element>	
66
		</choice>
67
	</complexType>
68

    
69
-->
70

    
71
<!-- self defined InfoUnitType -->
72

    
73
	<complexType name="InfoUnitType">
74
		<choice>
75
			<element name="Text" type="string"/>
76
			<element ref="gui:HyperLink"/>
77
			<element ref="gui:CheckBox"/>
78
			<element ref="gui:Radio"/>
79
			<element ref="gui:TextInput"/>
80
			<element ref="gui:PasswordInput"/>
81
		</choice>
82
	</complexType>
83

    
84
	<element name="HyperLink">
		<complexType>
85
	        <attribute name="text" type="string"/>	        			
86
	        <attribute name="href" use="required" type="anyURI"/>	        			
87
		</complexType>
88
	</element>
89

    
90
	<element name="CheckBox">
91
		<complexType>
92
			<sequence maxOccurs="unbounded" minOccurs="1">
93
				<element ref="gui:BoxItem"></element>
94
			</sequence>
95
		</complexType>
96
	</element>
97

    
98
	<element name="BoxItem">
99
		<complexType>
100
	        <attribute name="text" type="string"/>
101
	        <attribute name="name" type="string"/>
102
	        <attribute name="checked" type="boolean" use="required"/>                	        			
103
	        <attribute name="disabled" type="boolean" default="false" />	        			
104
		</complexType>
105
	</element>
106

    
107
	<element name="Radio">
108
		<complexType>
109
			<sequence maxOccurs="unbounded" minOccurs="1">
110
				<element ref="gui:BoxItem"></element>
111
			</sequence>
112
		</complexType>
113
	</element>
114

    
115
	<element name="TextInput">
116
		<complexType>
117
	        <attribute name="text" type="string"/>
118
	        <attribute name="name" type="string"/>
119
	        <attribute name="value" type="string"/>                	        			
120
		    <attribute name="minlength" type="nonNegativeInteger"/>
121
		    <attribute name="maxlength" type="nonNegativeInteger"/>
122
		</complexType>
123
	</element>
124

    
125
	<element name="PasswordInput">
126
		<complexType>
127
	        <attribute name="text" type="string"/>
128
	        <attribute name="name" type="string"/>
129
	        <attribute name="value" type="string" />                	        			
130
		    <attribute name="minlength" type="nonNegativeInteger"/>
131
		    <attribute name="maxlength" type="nonNegativeInteger"/>
132
		</complexType>
133
	</element>
134

    
135

    
136
</schema>