Project

General

Profile

Entwurf der GUI-Schnittstelle (2011-10-25) ยป GUI.xsd

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

 
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">
85
		<complexType>
86
	        <attribute name="text" type="string"/>	        			
87
	        <attribute name="href" use="required" type="anyURI"/>	        			
88
		</complexType>
89
	</element>
90

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

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

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

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

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

    
136

    
137
</schema>
    (1-1/1)