My favorites | Sign in
Google
Project hosting will be READ-ONLY Wednesday, 7AM PST due to brief network maintenance
                
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Module">
<xs:complexType>
<xs:sequence>
<xs:element name="ModulePrefs" minOccurs="0">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Require" type="GadgetFeatureType"/>
<xs:element name="Optional" type="GadgetFeatureType"/>
<xs:element name="Preload">
<xs:complexType>
<xs:attribute name="href" type="xs:string" use="required"/>
<xs:attribute name="authz" default="none">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="none"/>
<xs:enumeration value="signed"/>
<xs:enumeration value="oauth"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="sign_owner" type="xs:boolean" default="true"/>
<xs:attribute name="sign_viewer" type="xs:boolean" default="true"/>
<xs:attribute name="views" type="xs:string" use="optional"/>
<xs:attribute name="oauth_service_name" type="xs:string" use="optional"/>
<xs:attribute name="oauth_token_name" type="xs:string" use="optional"/>
<xs:attribute name="oauth_request_token" type="xs:string" use="optional"/>
<xs:attribute name="oauth_request_token_secret" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="Icon">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="mode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="base64"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="type" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Locale">
<xs:complexType>
<xs:sequence>
<xs:element name="msg" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="desc" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="lang" type="xs:string" use="optional"/>
<xs:attribute name="country" type="xs:string" use="optional"/>
<xs:attribute name="messages" type="xs:string" use="optional"/>
<xs:attribute name="language_direction">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ltr"/>
<xs:enumeration value="rtl"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Link">
<xs:complexType>
<xs:attribute name="href" type="xs:string" use="required"/>
<xs:attribute name="rel" type="xs:string" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="gadgets.help"/>
<xs:enumeration value="gadgets.support"/>
<xs:enumeration value="icon"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="OAuth" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="Service" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Request" type="OAuthResourceType" minOccurs="0"/>
<xs:element name="Access" type="OAuthResourceType" minOccurs="0"/>
<xs:element name="Authorization" minOccurs="0">
<xs:complexType>
<xs:attribute name="url" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="title" type="xs:string" use="optional"/>
<xs:attribute name="title_url" type="xs:string" use="optional"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
<xs:attribute name="author" type="xs:string" use="optional"/>
<xs:attribute name="author_email" type="xs:string" use="optional"/>
<xs:attribute name="screenshot" type="xs:string" use="optional"/>
<xs:attribute name="thumbnail" type="xs:string" use="optional"/>
<xs:attribute name="directory_title" type="xs:string" use="optional"/>
<xs:attribute name="author_affiliation" type="xs:string" use="optional"/>
<xs:attribute name="author_location" type="xs:string" use="optional"/>
<xs:attribute name="author_photo" type="xs:string" use="optional"/>
<xs:attribute name="author_aboutme" type="xs:string" use="optional"/>
<xs:attribute name="author_quote" type="xs:string" use="optional"/>
<xs:attribute name="author_link" type="xs:string" use="optional"/>
<xs:attribute name="show_stats" type="xs:boolean" use="optional"/>
<xs:attribute name="show_in_directory" type="xs:boolean" use="optional"/>
<xs:attribute name="string" type="xs:string" use="optional"/>
<xs:attribute name="width" type="xs:int" use="optional"/>
<xs:attribute name="height" type="xs:int" use="optional"/>
<xs:attribute name="category" type="xs:string" use="optional"/>
<xs:attribute name="category2" type="xs:string" use="optional"/>
<xs:attribute name="singleton" type="xs:boolean" use="optional"/>
<xs:attribute name="render_inline" type="xs:string" use="optional"/>
<xs:attribute name="scaling" type="xs:boolean" use="optional"/>
<xs:attribute name="scrolling" type="xs:boolean" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="UserPref" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="EnumValue" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="value" type="xs:string" use="required"/>
<xs:attribute name="display_value" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="display_name" type="xs:string" use="optional"/>
<xs:attribute name="default_value" type="xs:string" use="optional"/>
<xs:attribute name="required" type="xs:string" use="optional"/>
<xs:attribute name="datatype" default="string">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="string"/>
<xs:enumeration value="hidden"/>
<xs:enumeration value="bool"/>
<xs:enumeration value="enum"/>
<xs:enumeration value="list"/>
<xs:enumeration value="number"/>
<xs:enumeration value="location"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="urlparam" type="xs:string" use="optional"/>
<xs:attribute name="autocomplete_url" type="xs:string" use="optional"/>
<xs:attribute name="num_minval" type="xs:double" use="optional"/>
<xs:attribute name="num_maxval" type="xs:double" use="optional"/>
<xs:attribute name="str_maxlen" type="xs:int" use="optional"/>
<xs:attribute name="restrict_to_completions" type="xs:boolean" use="optional"/>
<xs:attribute name="prefix_match" type="xs:boolean" use="optional"/>
<xs:attribute name="publish" type="xs:boolean" use="optional"/>
<xs:attribute name="listen" type="xs:boolean" use="optional"/>
<xs:attribute name="on_change" type="xs:string" use="optional"/>
<xs:attribute name="group" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="Content" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" use="optional" default="html">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="html"/>
<xs:enumeration value="url"/>
<xs:enumeration value="html-inline"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="href" type="xs:string" use="optional"/>
<xs:attribute name="view" type="xs:string" use="optional"/>
<xs:attribute name="preferred_height" type="xs:integer" use="optional"/>
<xs:attribute name="preferred_width" type="xs:integer" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="GadgetFeatureType">
<xs:sequence>
<xs:element name="Param" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="feature" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="OAuthResourceType">
<xs:attribute name="url" type="xs:string" use="required"/>
<xs:attribute name="method" use="optional" default="GET">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="GET"/>
<xs:enumeration value="POST"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="param_location" use="optional" default="header">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="header"/>
<xs:enumeration value="url"/>
<xs:enumeration value="body"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:schema>
Show details Hide details

Change log

r820 by api.kur...@google.com on Sep 04, 2008   Diff
Updated the gadgets XSD files to support
OAuth preload syntax, as discussed in
this thread:
http://groups.google.com/group/opensocial-
and-gadgets-spec/browse_thread/thread/063f
21fff236d738#

Patch by John Hjelmstad.

Go to: 
Project members, sign in to write a code review

Older revisions

r819 by api.kur...@google.com on Sep 04, 2008   Diff
Updating gadget XSDs to pass
validation.  Patch by John Hjelmstad.

r679 by api.kur...@google.com on Jun 04, 2008   Diff
Updating specification XSD files to
reflect OAuth related changes agreed
upon for the 0.8 spec.  Patch by John
Hjelmstad.
r675 by api.kur...@google.com on May 30, 2008   Diff
Updating specification XSD files to
reflect agreed upon changes for 0.8
spec.  Patch by Kevin Brown.  Fixes
 issue 200 .
All revisions of this file

File info

Size: 12187 bytes, 235 lines

File properties

svn:mime-type
text/xml