xref: /aosp_15_r20/prebuilts/devtools/repository/sdk-repository-01.xsd (revision 4bfccde5c7e9ea06f821db40ef0af54f6695c320)
1*4bfccde5SXin Li<?xml version="1.0" encoding="UTF-8"?>
2*4bfccde5SXin Li<!--
3*4bfccde5SXin Li * Copyright (C) 2009 The Android Open Source Project
4*4bfccde5SXin Li *
5*4bfccde5SXin Li * Licensed under the Apache License, Version 2.0 (the "License");
6*4bfccde5SXin Li * you may not use this file except in compliance with the License.
7*4bfccde5SXin Li * You may obtain a copy of the License at
8*4bfccde5SXin Li *
9*4bfccde5SXin Li *      http://www.apache.org/licenses/LICENSE-2.0
10*4bfccde5SXin Li *
11*4bfccde5SXin Li * Unless required by applicable law or agreed to in writing, software
12*4bfccde5SXin Li * distributed under the License is distributed on an "AS IS" BASIS,
13*4bfccde5SXin Li * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*4bfccde5SXin Li * See the License for the specific language governing permissions and
15*4bfccde5SXin Li * limitations under the License.
16*4bfccde5SXin Li-->
17*4bfccde5SXin Li<xsd:schema
18*4bfccde5SXin Li    targetNamespace="http://schemas.android.com/sdk/android/repository/1"
19*4bfccde5SXin Li    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
20*4bfccde5SXin Li    xmlns:sdk="http://schemas.android.com/sdk/android/repository/1"
21*4bfccde5SXin Li    elementFormDefault="qualified"
22*4bfccde5SXin Li    attributeFormDefault="unqualified"
23*4bfccde5SXin Li    version="1">
24*4bfccde5SXin Li
25*4bfccde5SXin Li    <!-- The repository contains a collection of downloadable items known as
26*4bfccde5SXin Li         "packages". Each package has a type and various attributes and contains
27*4bfccde5SXin Li         a list of file "archives" that can be downloaded for specific OSes.
28*4bfccde5SXin Li
29*4bfccde5SXin Li         An Android SDK repository is a web site that contains a "repository.xml"
30*4bfccde5SXin Li         file that conforms to this XML Schema.
31*4bfccde5SXin Li
32*4bfccde5SXin Li         History:
33*4bfccde5SXin Li         - v1 is used by the SDK Updater in Tools r3 and Tools r4.
34*4bfccde5SXin Li    -->
35*4bfccde5SXin Li
36*4bfccde5SXin Li    <xsd:element name="sdk-repository">
37*4bfccde5SXin Li        <xsd:annotation>
38*4bfccde5SXin Li            <xsd:documentation>
39*4bfccde5SXin Li                The repository contains collections of downloadable packages.
40*4bfccde5SXin Li            </xsd:documentation>
41*4bfccde5SXin Li        </xsd:annotation>
42*4bfccde5SXin Li
43*4bfccde5SXin Li        <xsd:complexType>
44*4bfccde5SXin Li            <xsd:choice minOccurs="0" maxOccurs="unbounded">
45*4bfccde5SXin Li
46*4bfccde5SXin Li                <!-- The definition of an SDK platform package. -->
47*4bfccde5SXin Li
48*4bfccde5SXin Li                <xsd:element name="platform">
49*4bfccde5SXin Li                    <xsd:annotation>
50*4bfccde5SXin Li                        <xsd:documentation>An SDK platform package.</xsd:documentation>
51*4bfccde5SXin Li                    </xsd:annotation>
52*4bfccde5SXin Li                    <xsd:complexType>
53*4bfccde5SXin Li                        <xsd:all>
54*4bfccde5SXin Li                            <!-- The Android platform version. It is string such as "1.0". -->
55*4bfccde5SXin Li                            <xsd:element name="version"   type="xsd:normalizedString" />
56*4bfccde5SXin Li                            <!-- The Android API Level for the platform. An int > 0. -->
57*4bfccde5SXin Li                            <xsd:element name="api-level" type="xsd:positiveInteger"  />
58*4bfccde5SXin Li                            <!-- The optional codename for this platform, if it's a preview. -->
59*4bfccde5SXin Li                            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
60*4bfccde5SXin Li
61*4bfccde5SXin Li                            <!-- The revision, an int > 0, incremented each time a new
62*4bfccde5SXin Li                                 package is generated. -->
63*4bfccde5SXin Li                            <xsd:element name="revision"     type="xsd:positiveInteger" />
64*4bfccde5SXin Li                            <!-- The optional license of this package. If present, users will have
65*4bfccde5SXin Li                                 to agree to it before downloading. -->
66*4bfccde5SXin Li                            <xsd:element name="uses-license" type="sdk:licenseType" minOccurs="0" />
67*4bfccde5SXin Li                            <!-- The optional description of this package. -->
68*4bfccde5SXin Li                            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
69*4bfccde5SXin Li                            <!-- The optional description URL of this package -->
70*4bfccde5SXin Li                            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
71*4bfccde5SXin Li                            <!-- The optional release note for this package. -->
72*4bfccde5SXin Li                            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
73*4bfccde5SXin Li                            <!-- The optional release note URL of this package -->
74*4bfccde5SXin Li                            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
75*4bfccde5SXin Li                            <!-- A list of file archives for this package. -->
76*4bfccde5SXin Li                            <xsd:element name="archives"     type="sdk:archivesType" />
77*4bfccde5SXin Li                            <!-- The minimal revision of tools required by this package.
78*4bfccde5SXin Li                                 Optional. If present, must be an int > 0. -->
79*4bfccde5SXin Li                            <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" />
80*4bfccde5SXin Li                        </xsd:all>
81*4bfccde5SXin Li                    </xsd:complexType>
82*4bfccde5SXin Li                </xsd:element>
83*4bfccde5SXin Li
84*4bfccde5SXin Li
85*4bfccde5SXin Li                <!-- The definition of an SDK Add-on package. -->
86*4bfccde5SXin Li
87*4bfccde5SXin Li                <xsd:element name="add-on">
88*4bfccde5SXin Li                    <xsd:annotation>
89*4bfccde5SXin Li                        <xsd:documentation>An SDK add-on package.</xsd:documentation>
90*4bfccde5SXin Li                    </xsd:annotation>
91*4bfccde5SXin Li                    <xsd:complexType>
92*4bfccde5SXin Li                        <xsd:all>
93*4bfccde5SXin Li                            <!-- The name of the add-on. -->
94*4bfccde5SXin Li                            <xsd:element name="name"      type="xsd:normalizedString" />
95*4bfccde5SXin Li                            <!-- The vendor of the add-on. -->
96*4bfccde5SXin Li                            <xsd:element name="vendor"    type="xsd:normalizedString" />
97*4bfccde5SXin Li                            <!-- The Android API Level for the add-on. An int > 0. -->
98*4bfccde5SXin Li                            <xsd:element name="api-level" type="xsd:positiveInteger"  />
99*4bfccde5SXin Li                            <!-- Note: Add-ons do not support 'codename' (a.k.a. API previews). -->
100*4bfccde5SXin Li
101*4bfccde5SXin Li                            <!-- The revision, an int > 0, incremented each time a new
102*4bfccde5SXin Li                                 package is generated. -->
103*4bfccde5SXin Li                            <xsd:element name="revision"     type="xsd:positiveInteger" />
104*4bfccde5SXin Li                            <!-- The optional license of this package. If present, users will have
105*4bfccde5SXin Li                                 to agree to it before downloading. -->
106*4bfccde5SXin Li                            <xsd:element name="uses-license" type="sdk:licenseType" minOccurs="0" />
107*4bfccde5SXin Li                            <!-- The optional description of this package. -->
108*4bfccde5SXin Li                            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
109*4bfccde5SXin Li                            <!-- The optional description URL of this package -->
110*4bfccde5SXin Li                            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
111*4bfccde5SXin Li                            <!-- The optional release note for this package. -->
112*4bfccde5SXin Li                            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
113*4bfccde5SXin Li                            <!-- The optional release note URL of this package -->
114*4bfccde5SXin Li                            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
115*4bfccde5SXin Li                            <!-- A list of file archives for this package. -->
116*4bfccde5SXin Li                            <xsd:element name="archives"     type="sdk:archivesType" />
117*4bfccde5SXin Li
118*4bfccde5SXin Li                            <!-- An add-on can declare 0 or more libraries. -->
119*4bfccde5SXin Li
120*4bfccde5SXin Li                            <xsd:element name="libs">
121*4bfccde5SXin Li                                <xsd:complexType>
122*4bfccde5SXin Li                                    <xsd:sequence minOccurs="0" maxOccurs="unbounded">
123*4bfccde5SXin Li                                        <xsd:element name="lib">
124*4bfccde5SXin Li                                            <xsd:complexType>
125*4bfccde5SXin Li                                                <xsd:all>
126*4bfccde5SXin Li                                                    <!-- The name of the library. -->
127*4bfccde5SXin Li                                                    <xsd:element name="name" type="xsd:normalizedString" />
128*4bfccde5SXin Li                                                    <!-- The optional description of this add-on library. -->
129*4bfccde5SXin Li                                                    <xsd:element name="description" type="xsd:string" minOccurs="0" />
130*4bfccde5SXin Li                                                </xsd:all>
131*4bfccde5SXin Li                                            </xsd:complexType>
132*4bfccde5SXin Li                                        </xsd:element>
133*4bfccde5SXin Li                                    </xsd:sequence>
134*4bfccde5SXin Li                                </xsd:complexType>
135*4bfccde5SXin Li                            </xsd:element>
136*4bfccde5SXin Li                        </xsd:all>
137*4bfccde5SXin Li                    </xsd:complexType>
138*4bfccde5SXin Li                </xsd:element>
139*4bfccde5SXin Li
140*4bfccde5SXin Li
141*4bfccde5SXin Li                <!-- The definition of an SDK tool package. -->
142*4bfccde5SXin Li
143*4bfccde5SXin Li                <xsd:element name="tool">
144*4bfccde5SXin Li                    <xsd:annotation>
145*4bfccde5SXin Li                        <xsd:documentation>An SDK tool package.</xsd:documentation>
146*4bfccde5SXin Li                    </xsd:annotation>
147*4bfccde5SXin Li                    <xsd:complexType>
148*4bfccde5SXin Li                        <xsd:all>
149*4bfccde5SXin Li                            <!-- The revision, an int > 0, incremented each time a new
150*4bfccde5SXin Li                                 package is generated. -->
151*4bfccde5SXin Li                            <xsd:element name="revision"     type="xsd:positiveInteger" />
152*4bfccde5SXin Li                            <!-- The optional license of this package. If present, users will have
153*4bfccde5SXin Li                                 to agree to it before downloading. -->
154*4bfccde5SXin Li                            <xsd:element name="uses-license" type="sdk:licenseType" minOccurs="0" />
155*4bfccde5SXin Li                            <!-- The optional description of this package. -->
156*4bfccde5SXin Li                            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
157*4bfccde5SXin Li                            <!-- The optional description URL of this package -->
158*4bfccde5SXin Li                            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
159*4bfccde5SXin Li                            <!-- The optional release note for this package. -->
160*4bfccde5SXin Li                            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
161*4bfccde5SXin Li                            <!-- The optional release note URL of this package -->
162*4bfccde5SXin Li                            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
163*4bfccde5SXin Li                            <!-- A list of file archives for this package. -->
164*4bfccde5SXin Li                            <xsd:element name="archives"     type="sdk:archivesType" />
165*4bfccde5SXin Li                        </xsd:all>
166*4bfccde5SXin Li                    </xsd:complexType>
167*4bfccde5SXin Li                </xsd:element>
168*4bfccde5SXin Li
169*4bfccde5SXin Li
170*4bfccde5SXin Li                <!-- The definition of an SDK doc package. -->
171*4bfccde5SXin Li
172*4bfccde5SXin Li                <xsd:element name="doc">
173*4bfccde5SXin Li                    <xsd:annotation>
174*4bfccde5SXin Li                        <xsd:documentation>An SDK doc package.</xsd:documentation>
175*4bfccde5SXin Li                    </xsd:annotation>
176*4bfccde5SXin Li                    <xsd:complexType>
177*4bfccde5SXin Li                        <xsd:all>
178*4bfccde5SXin Li                            <!-- The Android API Level for the documentation. An int > 0. -->
179*4bfccde5SXin Li                            <xsd:element name="api-level" type="xsd:positiveInteger"  />
180*4bfccde5SXin Li                            <!-- The optional codename for this doc, if it's a preview. -->
181*4bfccde5SXin Li                            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
182*4bfccde5SXin Li
183*4bfccde5SXin Li                            <!-- The revision, an int > 0, incremented each time a new
184*4bfccde5SXin Li                                 package is generated. -->
185*4bfccde5SXin Li                            <xsd:element name="revision"     type="xsd:positiveInteger" />
186*4bfccde5SXin Li                            <!-- The optional license of this package. If present, users will have
187*4bfccde5SXin Li                                 to agree to it before downloading. -->
188*4bfccde5SXin Li                            <xsd:element name="uses-license" type="sdk:licenseType" minOccurs="0" />
189*4bfccde5SXin Li                            <!-- The optional description of this package. -->
190*4bfccde5SXin Li                            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
191*4bfccde5SXin Li                            <!-- The optional description URL of this package -->
192*4bfccde5SXin Li                            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
193*4bfccde5SXin Li                            <!-- The optional release note for this package. -->
194*4bfccde5SXin Li                            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
195*4bfccde5SXin Li                            <!-- The optional release note URL of this package -->
196*4bfccde5SXin Li                            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
197*4bfccde5SXin Li                            <!-- A list of file archives for this package. -->
198*4bfccde5SXin Li                            <xsd:element name="archives"     type="sdk:archivesType" />
199*4bfccde5SXin Li                        </xsd:all>
200*4bfccde5SXin Li                    </xsd:complexType>
201*4bfccde5SXin Li                </xsd:element>
202*4bfccde5SXin Li
203*4bfccde5SXin Li
204*4bfccde5SXin Li                <!-- The definition of an SDK extra package. This kind of package is for
205*4bfccde5SXin Li                     "free" content and specifies in which fixed root directory it must be
206*4bfccde5SXin Li                     installed.
207*4bfccde5SXin Li                -->
208*4bfccde5SXin Li
209*4bfccde5SXin Li                <xsd:element name="extra">
210*4bfccde5SXin Li                    <xsd:annotation>
211*4bfccde5SXin Li                        <xsd:documentation>
212*4bfccde5SXin Li                            An SDK extra package. This kind of package is for "free"
213*4bfccde5SXin Li                            content and specifies in which fixed root directory it must be
214*4bfccde5SXin Li                            installed.
215*4bfccde5SXin Li                            The paths "add-ons", "platforms", "tools" and "docs" are
216*4bfccde5SXin Li                            reserved and cannot be used.
217*4bfccde5SXin Li                        </xsd:documentation>
218*4bfccde5SXin Li                    </xsd:annotation>
219*4bfccde5SXin Li                    <xsd:complexType>
220*4bfccde5SXin Li                        <xsd:all>
221*4bfccde5SXin Li                            <!-- The install folder name. It must be a single-segment path.
222*4bfccde5SXin Li                                 The paths "add-ons", "platforms", "tools" and "docs" are
223*4bfccde5SXin Li                                 reserved and cannot be used.
224*4bfccde5SXin Li                            -->
225*4bfccde5SXin Li                            <xsd:element name="path">
226*4bfccde5SXin Li                                <xsd:simpleType>
227*4bfccde5SXin Li                                    <xsd:restriction base="xsd:token">
228*4bfccde5SXin Li                                        <xsd:pattern value="[^/\\]+"/>
229*4bfccde5SXin Li                                    </xsd:restriction>
230*4bfccde5SXin Li                                </xsd:simpleType>
231*4bfccde5SXin Li                            </xsd:element>
232*4bfccde5SXin Li
233*4bfccde5SXin Li                            <!-- The revision, an int > 0, incremented each time a new
234*4bfccde5SXin Li                                 package is generated. -->
235*4bfccde5SXin Li                            <xsd:element name="revision"     type="xsd:positiveInteger" />
236*4bfccde5SXin Li                            <!-- The optional license of this package. If present, users will have
237*4bfccde5SXin Li                                 to agree to it before downloading. -->
238*4bfccde5SXin Li                            <xsd:element name="uses-license" type="sdk:licenseType" minOccurs="0" />
239*4bfccde5SXin Li                            <!-- The optional description of this package. -->
240*4bfccde5SXin Li                            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
241*4bfccde5SXin Li                            <!-- The optional description URL of this package -->
242*4bfccde5SXin Li                            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
243*4bfccde5SXin Li                            <!-- The optional release note for this package. -->
244*4bfccde5SXin Li                            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
245*4bfccde5SXin Li                            <!-- The optional release note URL of this package -->
246*4bfccde5SXin Li                            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
247*4bfccde5SXin Li                            <!-- A list of file archives for this package. -->
248*4bfccde5SXin Li                            <xsd:element name="archives"     type="sdk:archivesType" />
249*4bfccde5SXin Li                            <!-- The minimal revision of tools required by this package.
250*4bfccde5SXin Li                                 Optional. If present, must be an int > 0. -->
251*4bfccde5SXin Li                            <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" />
252*4bfccde5SXin Li                        </xsd:all>
253*4bfccde5SXin Li                    </xsd:complexType>
254*4bfccde5SXin Li                </xsd:element>
255*4bfccde5SXin Li
256*4bfccde5SXin Li
257*4bfccde5SXin Li
258*4bfccde5SXin Li                <!-- The definition of a license to be referenced by the uses-license element. -->
259*4bfccde5SXin Li
260*4bfccde5SXin Li                <xsd:element name="license">
261*4bfccde5SXin Li                    <xsd:annotation>
262*4bfccde5SXin Li                        <xsd:documentation>
263*4bfccde5SXin Li                            A license definition. Such a license must be used later as a reference
264*4bfccde5SXin Li                            using a uses-license element in one of the package elements.
265*4bfccde5SXin Li                        </xsd:documentation>
266*4bfccde5SXin Li                    </xsd:annotation>
267*4bfccde5SXin Li                    <xsd:complexType>
268*4bfccde5SXin Li                        <xsd:simpleContent>
269*4bfccde5SXin Li                            <xsd:extension base="xsd:string">
270*4bfccde5SXin Li                                <xsd:attribute name="id"   type="xsd:ID" />
271*4bfccde5SXin Li                                <xsd:attribute name="type" type="xsd:token" fixed="text" />
272*4bfccde5SXin Li                            </xsd:extension>
273*4bfccde5SXin Li                        </xsd:simpleContent>
274*4bfccde5SXin Li                    </xsd:complexType>
275*4bfccde5SXin Li                </xsd:element>
276*4bfccde5SXin Li            </xsd:choice>
277*4bfccde5SXin Li        </xsd:complexType>
278*4bfccde5SXin Li    </xsd:element>
279*4bfccde5SXin Li
280*4bfccde5SXin Li
281*4bfccde5SXin Li    <!-- Type describing the license used by a package.
282*4bfccde5SXin Li         The license MUST be defined using a license node and referenced
283*4bfccde5SXin Li         using the ref attribute of the license element inside a package.
284*4bfccde5SXin Li     -->
285*4bfccde5SXin Li
286*4bfccde5SXin Li    <xsd:complexType name="licenseType">
287*4bfccde5SXin Li        <xsd:annotation>
288*4bfccde5SXin Li            <xsd:documentation>
289*4bfccde5SXin Li                Describes the license used by a package. The license MUST be defined
290*4bfccde5SXin Li                using a license node and referenced using the ref attribute of the
291*4bfccde5SXin Li                license element inside a package.
292*4bfccde5SXin Li            </xsd:documentation>
293*4bfccde5SXin Li        </xsd:annotation>
294*4bfccde5SXin Li        <xsd:attribute name="ref" type="xsd:IDREF" />
295*4bfccde5SXin Li    </xsd:complexType>
296*4bfccde5SXin Li
297*4bfccde5SXin Li
298*4bfccde5SXin Li    <!-- A collection of files that can be downloaded for a given architecture.
299*4bfccde5SXin Li         The <archives> node is mandatory in the repository elements and the
300*4bfccde5SXin Li         collection must have at least one <archive> declared.
301*4bfccde5SXin Li         Each archive is a zip file that will be unzipped in a location that depends
302*4bfccde5SXin Li         on its package type.
303*4bfccde5SXin Li     -->
304*4bfccde5SXin Li
305*4bfccde5SXin Li    <xsd:complexType name="archivesType">
306*4bfccde5SXin Li        <xsd:annotation>
307*4bfccde5SXin Li            <xsd:documentation>
308*4bfccde5SXin Li                A collection of files that can be downloaded for a given architecture.
309*4bfccde5SXin Li                The &lt;archives&gt; node is mandatory in the repository packages and the
310*4bfccde5SXin Li                collection must have at least one &lt;archive&gt; declared.
311*4bfccde5SXin Li                Each archive is a zip file that will be unzipped in a location that depends
312*4bfccde5SXin Li                on its package type.
313*4bfccde5SXin Li            </xsd:documentation>
314*4bfccde5SXin Li        </xsd:annotation>
315*4bfccde5SXin Li        <xsd:sequence minOccurs="1" maxOccurs="unbounded">
316*4bfccde5SXin Li            <!-- One archive file -->
317*4bfccde5SXin Li            <xsd:element name="archive">
318*4bfccde5SXin Li                <xsd:complexType>
319*4bfccde5SXin Li                    <!-- Properties of the archive file -->
320*4bfccde5SXin Li                    <xsd:all>
321*4bfccde5SXin Li                        <!-- The size in bytes of the archive to download. -->
322*4bfccde5SXin Li                        <xsd:element name="size"     type="xsd:positiveInteger" />
323*4bfccde5SXin Li                        <!-- The checksum of the archive file. -->
324*4bfccde5SXin Li                        <xsd:element name="checksum" type="sdk:checksumType" />
325*4bfccde5SXin Li                        <!-- The URL is an absolute URL if it starts with http://, https://
326*4bfccde5SXin Li                             or ftp://. Otherwise it is relative to the parent directory that
327*4bfccde5SXin Li                             contains this repository.xml -->
328*4bfccde5SXin Li                        <xsd:element name="url"      type="xsd:token" />
329*4bfccde5SXin Li                    </xsd:all>
330*4bfccde5SXin Li
331*4bfccde5SXin Li                    <!-- Attributes that identify the OS and architecture -->
332*4bfccde5SXin Li                    <xsd:attribute name="os" use="required">
333*4bfccde5SXin Li                        <xsd:simpleType>
334*4bfccde5SXin Li                            <xsd:restriction base="xsd:token">
335*4bfccde5SXin Li                                <xsd:enumeration value="any" />
336*4bfccde5SXin Li                                <xsd:enumeration value="linux" />
337*4bfccde5SXin Li                                <xsd:enumeration value="macosx" />
338*4bfccde5SXin Li                                <xsd:enumeration value="windows" />
339*4bfccde5SXin Li                            </xsd:restriction>
340*4bfccde5SXin Li                        </xsd:simpleType>
341*4bfccde5SXin Li                    </xsd:attribute>
342*4bfccde5SXin Li                    <xsd:attribute name="arch" use="optional">
343*4bfccde5SXin Li                        <xsd:simpleType>
344*4bfccde5SXin Li                            <xsd:restriction base="xsd:token">
345*4bfccde5SXin Li                                <xsd:enumeration value="any" />
346*4bfccde5SXin Li                                <xsd:enumeration value="ppc" />
347*4bfccde5SXin Li                                <xsd:enumeration value="x86" />
348*4bfccde5SXin Li                                <xsd:enumeration value="x86_64" />
349*4bfccde5SXin Li                            </xsd:restriction>
350*4bfccde5SXin Li                        </xsd:simpleType>
351*4bfccde5SXin Li                    </xsd:attribute>
352*4bfccde5SXin Li                </xsd:complexType>
353*4bfccde5SXin Li            </xsd:element>
354*4bfccde5SXin Li        </xsd:sequence>
355*4bfccde5SXin Li    </xsd:complexType>
356*4bfccde5SXin Li
357*4bfccde5SXin Li
358*4bfccde5SXin Li    <!-- The definition of a file checksum -->
359*4bfccde5SXin Li
360*4bfccde5SXin Li    <xsd:simpleType name="sha1Number">
361*4bfccde5SXin Li        <xsd:annotation>
362*4bfccde5SXin Li            <xsd:documentation>A SHA1 checksum.</xsd:documentation>
363*4bfccde5SXin Li        </xsd:annotation>
364*4bfccde5SXin Li        <xsd:restriction base="xsd:string">
365*4bfccde5SXin Li            <xsd:pattern value="([0-9a-fA-F]){40}"/>
366*4bfccde5SXin Li        </xsd:restriction>
367*4bfccde5SXin Li    </xsd:simpleType>
368*4bfccde5SXin Li
369*4bfccde5SXin Li    <xsd:complexType name="checksumType">
370*4bfccde5SXin Li        <xsd:annotation>
371*4bfccde5SXin Li            <xsd:documentation>A file checksum, currently only SHA1.</xsd:documentation>
372*4bfccde5SXin Li        </xsd:annotation>
373*4bfccde5SXin Li        <xsd:simpleContent>
374*4bfccde5SXin Li            <xsd:extension base="sdk:sha1Number">
375*4bfccde5SXin Li                <xsd:attribute name="type" type="xsd:token" fixed="sha1" />
376*4bfccde5SXin Li            </xsd:extension>
377*4bfccde5SXin Li        </xsd:simpleContent>
378*4bfccde5SXin Li    </xsd:complexType>
379*4bfccde5SXin Li
380*4bfccde5SXin Li
381*4bfccde5SXin Li</xsd:schema>
382