source: osm/applications/editors/josm/plugins/dataimport/resources/tcx/TrainingCenterDatabasev2.xsd@ 33241

Last change on this file since 33241 was 32322, checked in by donvip, 9 years ago

checkstyle

File size: 32.3 KB
Line 
1<?xml version="1.0"?>
2<xsd:schema xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 targetNamespace="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2" xmlns:tc2="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"
4 elementFormDefault="qualified">
5 <xsd:annotation>
6 <xsd:documentation>This schema defines the Garmin Training Center file format.</xsd:documentation>
7 </xsd:annotation>
8 <xsd:element name="TrainingCenterDatabase" type="TrainingCenterDatabase_t">
9 <xsd:keyref name="ActivityIdKeyRef" refer="tc2:ActivityIdMustBeUnique">
10 <xsd:selector xpath=".//tc2:ActivityRef"/>
11 <xsd:field xpath="tc2:Id"/>
12 </xsd:keyref>
13 <xsd:key name="ActivityIdMustBeUnique">
14 <xsd:selector xpath=".//tc2:Activities/tc2:Activity"/>
15 <xsd:field xpath="tc2:Id"/>
16 </xsd:key>
17 <xsd:keyref name="MultisportActivityIdKeyRef" refer="tc2:MultisportActivityIdMustBeUnique">
18 <xsd:selector xpath=".//tc2:MultisportActivityRef"/>
19 <xsd:field xpath="tc2:Id"/>
20 </xsd:keyref>
21 <xsd:key name="MultisportActivityIdMustBeUnique">
22 <xsd:selector xpath=".//tc2:Activities/tc2:MultiSportSession"/>
23 <xsd:field xpath="tc2:Id"/>
24 </xsd:key>
25 <xsd:keyref name="WorkoutNameKeyRef" refer="tc2:WorkoutNameMustBeUnique">
26 <xsd:selector xpath=".//tc2:WorkoutNameRef"/>
27 <xsd:field xpath="tc2:Id"/>
28 </xsd:keyref>
29 <xsd:key name="WorkoutNameMustBeUnique">
30 <xsd:selector xpath=".//tc2:Workouts/tc2:Workout"/>
31 <xsd:field xpath="tc2:Name"/>
32 </xsd:key>
33 <xsd:keyref name="CourseNameKeyRef" refer="tc2:CourseNameMustBeUnique">
34 <xsd:selector xpath=".//tc2:CourseNameRef"/>
35 <xsd:field xpath="tc2:Id"/>
36 </xsd:keyref>
37 <xsd:key name="CourseNameMustBeUnique">
38 <xsd:selector xpath=".//tc2:Courses/tc2:Course"/>
39 <xsd:field xpath="tc2:Name"/>
40 </xsd:key>
41 </xsd:element>
42 <xsd:complexType name="TrainingCenterDatabase_t">
43 <xsd:sequence>
44 <xsd:element name="Folders" type="Folders_t" minOccurs="0"/>
45 <xsd:element name="Activities" type="ActivityList_t" minOccurs="0"/>
46 <xsd:element name="Workouts" type="WorkoutList_t" minOccurs="0"/>
47 <xsd:element name="Courses" type="CourseList_t" minOccurs="0"/>
48 <xsd:element name="Author" type="AbstractSource_t" minOccurs="0"/>
49 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
50 <xsd:annotation>
51 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
52 </xsd:annotation>
53 </xsd:element>
54 </xsd:sequence>
55 </xsd:complexType>
56 <xsd:complexType name="Folders_t">
57 <xsd:sequence>
58 <xsd:element name="History" type="History_t" minOccurs="0"/>
59 <xsd:element name="Workouts" type="Workouts_t" minOccurs="0"/>
60 <xsd:element name="Courses" type="Courses_t" minOccurs="0"/>
61 </xsd:sequence>
62 </xsd:complexType>
63 <xsd:complexType name="ActivityList_t">
64 <xsd:sequence>
65 <xsd:element name="Activity" type="Activity_t" minOccurs="0" maxOccurs="unbounded"/>
66 <xsd:element name="MultiSportSession" type="MultiSportSession_t" minOccurs="0" maxOccurs="unbounded"/>
67 </xsd:sequence>
68 </xsd:complexType>
69 <xsd:complexType name="WorkoutList_t">
70 <xsd:sequence>
71 <xsd:element name="Workout" type="Workout_t" minOccurs="0" maxOccurs="unbounded">
72 <xsd:annotation>
73 <xsd:documentation>
74 The StepId should be unique within a workout and should not
75 exceed 20. This restricts the number of steps in a workout to 20.
76 </xsd:documentation>
77 </xsd:annotation>
78 <xsd:unique name="StepIdMustBeUnique">
79 <xsd:selector xpath=".//*"/>
80 <xsd:field xpath="tc2:StepId"/>
81 </xsd:unique>
82 </xsd:element>
83 </xsd:sequence>
84 </xsd:complexType>
85 <xsd:complexType name="CourseList_t">
86 <xsd:sequence>
87 <xsd:element name="Course" type="Course_t" minOccurs="0" maxOccurs="unbounded"/>
88 </xsd:sequence>
89 </xsd:complexType>
90 <xsd:complexType name="History_t">
91 <xsd:sequence>
92 <xsd:element name="Running" type="HistoryFolder_t"/>
93 <xsd:element name="Biking" type="HistoryFolder_t"/>
94 <xsd:element name="Other" type="HistoryFolder_t"/>
95 <xsd:element name="MultiSport" type="MultiSportFolder_t"/>
96 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
97 <xsd:annotation>
98 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
99 </xsd:annotation>
100 </xsd:element>
101 </xsd:sequence>
102 </xsd:complexType>
103 <xsd:complexType name="ActivityReference_t">
104 <xsd:sequence>
105 <xsd:element name="Id" type="xsd:dateTime"/>
106 </xsd:sequence>
107 </xsd:complexType>
108 <xsd:complexType name="HistoryFolder_t">
109 <xsd:sequence>
110 <xsd:element name="Folder" type="HistoryFolder_t" minOccurs="0" maxOccurs="unbounded"/>
111 <xsd:element name="ActivityRef" type="ActivityReference_t" minOccurs="0" maxOccurs="unbounded"/>
112 <xsd:element name="Week" type="Week_t" minOccurs="0" maxOccurs="unbounded"/>
113 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
114 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
115 <xsd:annotation>
116 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
117 </xsd:annotation>
118 </xsd:element>
119 </xsd:sequence>
120 <xsd:attribute name="Name" type="xsd:string" use="required"/>
121 </xsd:complexType>
122 <xsd:complexType name="MultiSportFolder_t">
123 <xsd:sequence>
124 <xsd:element name="Folder" type="MultiSportFolder_t" minOccurs="0" maxOccurs="unbounded"/>
125 <xsd:element name="MultisportActivityRef" type="ActivityReference_t" minOccurs="0" maxOccurs="unbounded"/>
126 <xsd:element name="Week" type="Week_t" minOccurs="0" maxOccurs="unbounded"/>
127 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
128 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
129 <xsd:annotation>
130 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
131 </xsd:annotation>
132 </xsd:element>
133 </xsd:sequence>
134 <xsd:attribute name="Name" type="xsd:string" use="required"/>
135 </xsd:complexType>
136 <xsd:complexType name="Week_t">
137 <xsd:sequence>
138 <xsd:annotation>
139 <xsd:documentation>
140 The week is written out only if the notes are present.
141 </xsd:documentation>
142 </xsd:annotation>
143 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
144 </xsd:sequence>
145 <xsd:attribute name="StartDay" type="xsd:date" use="required"/>
146 </xsd:complexType>
147 <xsd:complexType name="MultiSportSession_t">
148 <xsd:sequence>
149 <xsd:element name="Id" type="xsd:dateTime"/>
150 <xsd:element name="FirstSport" type="FirstSport_t"/>
151 <xsd:element name="NextSport" type="NextSport_t" minOccurs="0" maxOccurs="unbounded"/>
152 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
153 </xsd:sequence>
154 </xsd:complexType>
155 <xsd:complexType name="FirstSport_t">
156 <xsd:sequence>
157 <xsd:element name="Activity" type="Activity_t"/>
158 </xsd:sequence>
159 </xsd:complexType>
160 <xsd:complexType name="NextSport_t">
161 <xsd:sequence>
162 <xsd:annotation>
163 <xsd:documentation>
164 Each sport contains an optional transition and a run.
165 </xsd:documentation>
166 </xsd:annotation>
167 <xsd:element name="Transition" type="ActivityLap_t" minOccurs="0"/>
168 <xsd:element name="Activity" type="Activity_t"/>
169 </xsd:sequence>
170 </xsd:complexType>
171 <xsd:simpleType name="Sport_t">
172 <xsd:restriction base="Token_t">
173 <xsd:enumeration value="Running"/>
174 <xsd:enumeration value="Biking"/>
175 <xsd:enumeration value="Other"/>
176 </xsd:restriction>
177 </xsd:simpleType>
178 <xsd:complexType name="Activity_t">
179 <xsd:sequence>
180 <xsd:element name="Id" type="xsd:dateTime"/>
181 <xsd:element name="Lap" type="ActivityLap_t" maxOccurs="unbounded"/>
182 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
183 <xsd:element name="Training" type="Training_t" minOccurs="0"/>
184 <xsd:element name="Creator" type="AbstractSource_t" minOccurs="0"/>
185 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
186 <xsd:annotation>
187 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
188 </xsd:annotation>
189 </xsd:element>
190 </xsd:sequence>
191 <xsd:attribute name="Sport" type="Sport_t" use="required"/>
192 </xsd:complexType>
193 <xsd:complexType name="AbstractSource_t" abstract="true">
194 <xsd:sequence>
195 <xsd:element name="Name" type="Token_t"/>
196 </xsd:sequence>
197 </xsd:complexType>
198 <xsd:complexType name="Device_t">
199 <xsd:annotation>
200 <xsd:documentation>Identifies the originating GPS device that tracked a run or
201 used to identify the type of device capable of handling
202 the data for loading.</xsd:documentation>
203 </xsd:annotation>
204 <xsd:complexContent>
205 <xsd:extension base="AbstractSource_t">
206 <xsd:sequence>
207 <xsd:element name="UnitId" type="xsd:unsignedInt"/>
208 <xsd:element name="ProductID" type="xsd:unsignedShort"/>
209 <xsd:element name="Version" type="Version_t"/>
210 </xsd:sequence>
211 </xsd:extension>
212 </xsd:complexContent>
213 </xsd:complexType>
214 <xsd:complexType name="Application_t">
215 <xsd:annotation>
216 <xsd:documentation>Identifies a PC software application.</xsd:documentation>
217 </xsd:annotation>
218 <xsd:complexContent>
219 <xsd:extension base="AbstractSource_t">
220 <xsd:sequence>
221 <xsd:element name="Build" type="Build_t"/>
222 <xsd:element name="LangID" type="LangID_t"/>
223 <xsd:element name="PartNumber" type="PartNumber_t"/>
224 </xsd:sequence>
225 </xsd:extension>
226 </xsd:complexContent>
227 </xsd:complexType>
228 <xsd:simpleType name="LangID_t">
229 <xsd:annotation>
230 <xsd:documentation>Specifies the two character ISO 693-1 language id that identifies the installed language of this application.
231 see http://www.loc.gov/standards/iso639-2/ for appropriate ISO identifiers</xsd:documentation>
232 </xsd:annotation>
233 <xsd:restriction base="Token_t">
234 <xsd:length value="2"/>
235 </xsd:restriction>
236 </xsd:simpleType>
237 <xsd:simpleType name="PartNumber_t">
238 <xsd:annotation>
239 <xsd:documentation>The formatted XXX-XXXXX-XX Garmin part number of a PC application.
240</xsd:documentation>
241 </xsd:annotation>
242 <xsd:restriction base="Token_t">
243 <xsd:pattern value="[\p{Lu}\d]{3}-[\p{Lu}\d]{5}-[\p{Lu}\d]{2}"/>
244 </xsd:restriction>
245 </xsd:simpleType>
246 <xsd:simpleType name="Token_t">
247 <xsd:annotation>
248 <xsd:documentation>Token must be defined as a type because of a bug in the MSXML parser which
249 does not correctly process xsd:token using the whiteSpace value of "collapse"
250</xsd:documentation>
251 </xsd:annotation>
252 <xsd:restriction base="xsd:token">
253 <xsd:whiteSpace value="collapse"/>
254 </xsd:restriction>
255 </xsd:simpleType>
256 <xsd:complexType name="Build_t">
257 <xsd:sequence>
258 <xsd:element name="Version" type="Version_t"/>
259 <xsd:element name="Type" type="BuildType_t" minOccurs="0"/>
260 <xsd:element name="Time" type="Token_t" minOccurs="0">
261 <xsd:annotation>
262 <xsd:documentation>
263 A string containing the date and time when an application was built.
264 Note that this is not an xsd:dateTime type because this string is
265 generated by the compiler and cannot be readily converted to the
266 xsd:dateTime format.
267 </xsd:documentation>
268 </xsd:annotation>
269 </xsd:element>
270 <xsd:element name="Builder" type="Token_t" minOccurs="0">
271 <xsd:annotation>
272 <xsd:documentation>
273 The login name of the engineer who created this build.
274 </xsd:documentation>
275 </xsd:annotation>
276 </xsd:element>
277 </xsd:sequence>
278 </xsd:complexType>
279 <xsd:simpleType name="BuildType_t">
280 <xsd:restriction base="Token_t">
281 <xsd:enumeration value="Internal"/>
282 <xsd:enumeration value="Alpha"/>
283 <xsd:enumeration value="Beta"/>
284 <xsd:enumeration value="Release"/>
285 </xsd:restriction>
286 </xsd:simpleType>
287 <xsd:complexType name="Version_t">
288 <xsd:sequence>
289 <xsd:element name="VersionMajor" type="xsd:unsignedShort"/>
290 <xsd:element name="VersionMinor" type="xsd:unsignedShort"/>
291 <xsd:element name="BuildMajor" type="xsd:unsignedShort" minOccurs="0"/>
292 <xsd:element name="BuildMinor" type="xsd:unsignedShort" minOccurs="0"/>
293 </xsd:sequence>
294 </xsd:complexType>
295 <xsd:complexType name="Training_t">
296 <xsd:sequence>
297 <xsd:element name="QuickWorkoutResults" type="QuickWorkout_t" minOccurs="0"/>
298 <xsd:element name="Plan" type="Plan_t" minOccurs="0"/>
299 </xsd:sequence>
300 <xsd:attribute name="VirtualPartner" type="xsd:boolean" use="required"/>
301 </xsd:complexType>
302 <xsd:complexType name="QuickWorkout_t">
303 <xsd:sequence>
304 <xsd:element name="TotalTimeSeconds" type="xsd:double"/>
305 <xsd:element name="DistanceMeters" type="xsd:double"/>
306 </xsd:sequence>
307 </xsd:complexType>
308 <xsd:complexType name="Plan_t">
309 <xsd:sequence>
310 <xsd:element name="Name" type="RestrictedToken_t" minOccurs="0"/>
311 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
312 <xsd:annotation>
313 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
314 </xsd:annotation>
315 </xsd:element>
316 </xsd:sequence>
317 <xsd:attribute name="Type" type="TrainingType_t" use="required"/>
318 <xsd:attribute name="IntervalWorkout" type="xsd:boolean" use="required"/>
319 </xsd:complexType>
320 <xsd:simpleType name="TrainingType_t">
321 <xsd:restriction base="Token_t">
322 <xsd:enumeration value="Workout"/>
323 <xsd:enumeration value="Course"/>
324 </xsd:restriction>
325 </xsd:simpleType>
326 <xsd:complexType name="ActivityLap_t">
327 <xsd:sequence>
328 <xsd:element name="TotalTimeSeconds" type="xsd:double"/>
329 <xsd:element name="DistanceMeters" type="xsd:double"/>
330 <xsd:element name="MaximumSpeed" type="xsd:double" minOccurs="0"/>
331 <xsd:element name="Calories" type="xsd:unsignedShort"/>
332 <xsd:element name="AverageHeartRateBpm" type="HeartRateInBeatsPerMinute_t" minOccurs="0"/>
333 <xsd:element name="MaximumHeartRateBpm" type="HeartRateInBeatsPerMinute_t" minOccurs="0"/>
334 <xsd:element name="Intensity" type="Intensity_t"/>
335 <xsd:element name="Cadence" type="CadenceValue_t" minOccurs="0"/>
336 <xsd:element name="TriggerMethod" type="TriggerMethod_t"/>
337 <xsd:element name="Track" type="Track_t" minOccurs="0" maxOccurs="unbounded"/>
338 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
339 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
340 <xsd:annotation>
341 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
342 </xsd:annotation>
343 </xsd:element>
344 </xsd:sequence>
345 <xsd:attribute name="StartTime" type="xsd:dateTime" use="required"/>
346 </xsd:complexType>
347 <xsd:simpleType name="CadenceValue_t">
348 <xsd:restriction base="xsd:unsignedByte">
349 <xsd:maxInclusive value="254"/>
350 </xsd:restriction>
351 </xsd:simpleType>
352 <xsd:simpleType name="TriggerMethod_t">
353 <xsd:restriction base="Token_t">
354 <xsd:enumeration value="Manual"/>
355 <xsd:enumeration value="Distance"/>
356 <xsd:enumeration value="Location"/>
357 <xsd:enumeration value="Time"/>
358 <xsd:enumeration value="HeartRate"/>
359 </xsd:restriction>
360 </xsd:simpleType>
361 <xsd:complexType name="Track_t">
362 <xsd:sequence>
363 <xsd:element name="Trackpoint" type="Trackpoint_t" maxOccurs="unbounded"/>
364 </xsd:sequence>
365 </xsd:complexType>
366 <xsd:complexType name="Trackpoint_t">
367 <xsd:sequence>
368 <xsd:element name="Time" type="xsd:dateTime"/>
369 <xsd:element name="Position" type="Position_t" minOccurs="0"/>
370 <xsd:element name="AltitudeMeters" type="xsd:double" minOccurs="0"/>
371 <xsd:element name="DistanceMeters" type="xsd:double" minOccurs="0"/>
372 <xsd:element name="HeartRateBpm" type="HeartRateInBeatsPerMinute_t" minOccurs="0"/>
373 <xsd:element name="Cadence" type="CadenceValue_t" minOccurs="0"/>
374 <xsd:element name="SensorState" type="SensorState_t" minOccurs="0"/>
375 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
376 <xsd:annotation>
377 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
378 </xsd:annotation>
379 </xsd:element>
380 </xsd:sequence>
381 </xsd:complexType>
382 <xsd:complexType name="Position_t">
383 <xsd:sequence>
384 <xsd:element name="LatitudeDegrees" type="DegreesLatitude_t"/>
385 <xsd:element name="LongitudeDegrees" type="DegreesLongitude_t"/>
386 </xsd:sequence>
387 </xsd:complexType>
388 <xsd:simpleType name="DegreesLongitude_t">
389 <xsd:annotation>
390 <xsd:documentation/>
391 </xsd:annotation>
392 <xsd:restriction base="xsd:double">
393 <xsd:maxExclusive value="180.0"/>
394 <xsd:minInclusive value="-180.0"/>
395 </xsd:restriction>
396 </xsd:simpleType>
397 <xsd:simpleType name="DegreesLatitude_t">
398 <xsd:annotation>
399 <xsd:documentation/>
400 </xsd:annotation>
401 <xsd:restriction base="xsd:double">
402 <xsd:maxInclusive value="90.0"/>
403 <xsd:minInclusive value="-90.0"/>
404 </xsd:restriction>
405 </xsd:simpleType>
406 <xsd:simpleType name="SensorState_t">
407 <xsd:restriction base="Token_t">
408 <xsd:enumeration value="Present"/>
409 <xsd:enumeration value="Absent"/>
410 </xsd:restriction>
411 </xsd:simpleType>
412 <xsd:complexType name="Workouts_t">
413 <xsd:sequence>
414 <xsd:element name="Running" type="WorkoutFolder_t">
415 <xsd:unique name="RunningSubFolderNamesMustBeUnique">
416 <xsd:selector xpath="tc2:Folder"/>
417 <xsd:field xpath="@Name"/>
418 </xsd:unique>
419 </xsd:element>
420 <xsd:element name="Biking" type="WorkoutFolder_t">
421 <xsd:unique name="BikingSubFolderNamesMustBeUnique">
422 <xsd:selector xpath="tc2:Folder"/>
423 <xsd:field xpath="@Name"/>
424 </xsd:unique>
425 </xsd:element>
426 <xsd:element name="Other" type="WorkoutFolder_t">
427 <xsd:unique name="OtherSubFolderNamesMustBeUnique">
428 <xsd:selector xpath="tc2:Folder"/>
429 <xsd:field xpath="@Name"/>
430 </xsd:unique>
431 </xsd:element>
432 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
433 <xsd:annotation>
434 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
435 </xsd:annotation>
436 </xsd:element>
437 </xsd:sequence>
438 </xsd:complexType>
439 <xsd:complexType name="NameKeyReference_t">
440 <xsd:sequence>
441 <xsd:element name="Id" type="RestrictedToken_t"/>
442 </xsd:sequence>
443 </xsd:complexType>
444 <xsd:complexType name="WorkoutFolder_t">
445 <xsd:sequence>
446 <xsd:element name="Folder" type="WorkoutFolder_t" minOccurs="0" maxOccurs="unbounded">
447 <xsd:unique name="SubFolderNamesMustBeUnique">
448 <xsd:selector xpath="tc2:Folder"/>
449 <xsd:field xpath="@Name"/>
450 </xsd:unique>
451 </xsd:element>
452 <xsd:element name="WorkoutNameRef" type="NameKeyReference_t" minOccurs="0" maxOccurs="unbounded"/>
453 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
454 <xsd:annotation>
455 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
456 </xsd:annotation>
457 </xsd:element>
458 </xsd:sequence>
459 <xsd:attribute name="Name" type="xsd:string" use="required"/>
460 </xsd:complexType>
461 <xsd:complexType name="Workout_t">
462 <xsd:sequence>
463 <xsd:element name="Name" type="RestrictedToken_t"/>
464 <xsd:element name="Step" type="AbstractStep_t" maxOccurs="unbounded"/>
465 <xsd:element name="ScheduledOn" type="xsd:date" minOccurs="0" maxOccurs="unbounded"/>
466 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
467 <xsd:element name="Creator" type="AbstractSource_t" minOccurs="0"/>
468 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
469 <xsd:annotation>
470 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
471 </xsd:annotation>
472 </xsd:element>
473 </xsd:sequence>
474 <xsd:attribute name="Sport" type="Sport_t" use="required"/>
475 </xsd:complexType>
476 <xsd:simpleType name="RestrictedToken_t">
477 <xsd:restriction base="Token_t">
478 <xsd:minLength value="1"/>
479 <xsd:maxLength value="15"/>
480 </xsd:restriction>
481 </xsd:simpleType>
482 <xsd:complexType name="AbstractStep_t" abstract="true">
483 <xsd:sequence>
484 <xsd:element name="StepId" type="StepId_t"/>
485 </xsd:sequence>
486 </xsd:complexType>
487 <xsd:simpleType name="StepId_t">
488 <xsd:restriction base="xsd:positiveInteger">
489 <xsd:maxInclusive value="20"/>
490 </xsd:restriction>
491 </xsd:simpleType>
492 <xsd:complexType name="Repeat_t">
493 <xsd:complexContent>
494 <xsd:extension base="AbstractStep_t">
495 <xsd:sequence>
496 <xsd:element name="Repetitions" type="Repetitions_t"/>
497 <xsd:element name="Child" type="AbstractStep_t" maxOccurs="unbounded"/>
498 </xsd:sequence>
499 </xsd:extension>
500 </xsd:complexContent>
501 </xsd:complexType>
502 <xsd:simpleType name="Repetitions_t">
503 <xsd:restriction base="xsd:positiveInteger">
504 <xsd:minInclusive value="2"/>
505 <xsd:maxInclusive value="99"/>
506 </xsd:restriction>
507 </xsd:simpleType>
508 <xsd:complexType name="Step_t">
509 <xsd:complexContent>
510 <xsd:extension base="AbstractStep_t">
511 <xsd:sequence>
512 <xsd:element name="Name" type="RestrictedToken_t" minOccurs="0"/>
513 <xsd:element name="Duration" type="Duration_t"/>
514 <xsd:element name="Intensity" type="Intensity_t"/>
515 <xsd:element name="Target" type="Target_t"/>
516 </xsd:sequence>
517 </xsd:extension>
518 </xsd:complexContent>
519 </xsd:complexType>
520 <xsd:complexType name="Duration_t" abstract="true"/>
521 <xsd:simpleType name="Intensity_t">
522 <xsd:restriction base="Token_t">
523 <xsd:enumeration value="Active"/>
524 <xsd:enumeration value="Resting"/>
525 </xsd:restriction>
526 </xsd:simpleType>
527 <xsd:complexType name="Target_t" abstract="true"/>
528 <xsd:complexType name="Time_t">
529 <xsd:complexContent>
530 <xsd:extension base="Duration_t">
531 <xsd:sequence>
532 <xsd:element name="Seconds" type="xsd:unsignedShort"/>
533 </xsd:sequence>
534 </xsd:extension>
535 </xsd:complexContent>
536 </xsd:complexType>
537 <xsd:complexType name="Distance_t">
538 <xsd:complexContent>
539 <xsd:extension base="Duration_t">
540 <xsd:sequence>
541 <xsd:element name="Meters" type="xsd:unsignedShort"/>
542 </xsd:sequence>
543 </xsd:extension>
544 </xsd:complexContent>
545 </xsd:complexType>
546 <xsd:complexType name="HeartRateAbove_t">
547 <xsd:complexContent>
548 <xsd:extension base="Duration_t">
549 <xsd:sequence>
550 <xsd:element name="HeartRate" type="HeartRateValue_t"/>
551 </xsd:sequence>
552 </xsd:extension>
553 </xsd:complexContent>
554 </xsd:complexType>
555 <xsd:complexType name="HeartRateValue_t" abstract="true"/>
556 <xsd:complexType name="HeartRateBelow_t">
557 <xsd:complexContent>
558 <xsd:extension base="Duration_t">
559 <xsd:sequence>
560 <xsd:element name="HeartRate" type="HeartRateValue_t"/>
561 </xsd:sequence>
562 </xsd:extension>
563 </xsd:complexContent>
564 </xsd:complexType>
565 <xsd:complexType name="CaloriesBurned_t">
566 <xsd:complexContent>
567 <xsd:extension base="Duration_t">
568 <xsd:sequence>
569 <xsd:element name="Calories" type="xsd:unsignedShort"/>
570 </xsd:sequence>
571 </xsd:extension>
572 </xsd:complexContent>
573 </xsd:complexType>
574 <xsd:complexType name="UserInitiated_t">
575 <xsd:complexContent>
576 <xsd:extension base="Duration_t"/>
577 </xsd:complexContent>
578 </xsd:complexType>
579 <xsd:complexType name="Speed_t">
580 <xsd:complexContent>
581 <xsd:extension base="Target_t">
582 <xsd:sequence>
583 <xsd:element name="SpeedZone" type="Zone_t"/>
584 </xsd:sequence>
585 </xsd:extension>
586 </xsd:complexContent>
587 </xsd:complexType>
588 <xsd:complexType name="HeartRate_t">
589 <xsd:complexContent>
590 <xsd:extension base="Target_t">
591 <xsd:sequence>
592 <xsd:element name="HeartRateZone" type="Zone_t"/>
593 </xsd:sequence>
594 </xsd:extension>
595 </xsd:complexContent>
596 </xsd:complexType>
597 <xsd:complexType name="Cadence_t">
598 <xsd:complexContent>
599 <xsd:extension base="Target_t">
600 <xsd:sequence>
601 <xsd:element name="Low" type="xsd:double"/>
602 <xsd:element name="High" type="xsd:double"/>
603 </xsd:sequence>
604 </xsd:extension>
605 </xsd:complexContent>
606 </xsd:complexType>
607 <xsd:complexType name="None_t">
608 <xsd:complexContent>
609 <xsd:extension base="Target_t"/>
610 </xsd:complexContent>
611 </xsd:complexType>
612 <xsd:complexType name="Zone_t" abstract="true"/>
613 <xsd:complexType name="PredefinedSpeedZone_t">
614 <xsd:complexContent>
615 <xsd:extension base="Zone_t">
616 <xsd:sequence>
617 <xsd:element name="Number" type="SpeedZoneNumbers_t"/>
618 </xsd:sequence>
619 </xsd:extension>
620 </xsd:complexContent>
621 </xsd:complexType>
622 <xsd:simpleType name="SpeedZoneNumbers_t">
623 <xsd:restriction base="xsd:positiveInteger">
624 <xsd:maxInclusive value="10"/>
625 </xsd:restriction>
626 </xsd:simpleType>
627 <xsd:complexType name="CustomSpeedZone_t">
628 <xsd:complexContent>
629 <xsd:extension base="Zone_t">
630 <xsd:sequence>
631 <xsd:element name="ViewAs" type="SpeedType_t"/>
632 <xsd:element name="LowInMetersPerSecond" type="SpeedInMetersPerSecond_t"/>
633 <xsd:element name="HighInMetersPerSecond" type="SpeedInMetersPerSecond_t"/>
634 </xsd:sequence>
635 </xsd:extension>
636 </xsd:complexContent>
637 </xsd:complexType>
638 <xsd:simpleType name="SpeedInMetersPerSecond_t">
639 <xsd:restriction base="xsd:double">
640 <xsd:minExclusive value="0"/>
641 </xsd:restriction>
642 </xsd:simpleType>
643 <xsd:simpleType name="SpeedType_t">
644 <xsd:restriction base="Token_t">
645 <xsd:enumeration value="Pace"/>
646 <xsd:enumeration value="Speed"/>
647 </xsd:restriction>
648 </xsd:simpleType>
649 <xsd:complexType name="PredefinedHeartRateZone_t">
650 <xsd:complexContent>
651 <xsd:extension base="Zone_t">
652 <xsd:sequence>
653 <xsd:element name="Number" type="HeartRateZoneNumbers_t"/>
654 </xsd:sequence>
655 </xsd:extension>
656 </xsd:complexContent>
657 </xsd:complexType>
658 <xsd:simpleType name="HeartRateZoneNumbers_t">
659 <xsd:restriction base="xsd:positiveInteger">
660 <xsd:maxInclusive value="5"/>
661 </xsd:restriction>
662 </xsd:simpleType>
663 <xsd:complexType name="CustomHeartRateZone_t">
664 <xsd:complexContent>
665 <xsd:extension base="Zone_t">
666 <xsd:sequence>
667 <xsd:element name="Low" type="HeartRateValue_t"/>
668 <xsd:element name="High" type="HeartRateValue_t"/>
669 </xsd:sequence>
670 </xsd:extension>
671 </xsd:complexContent>
672 </xsd:complexType>
673 <xsd:complexType name="HeartRateInBeatsPerMinute_t">
674 <xsd:complexContent>
675 <xsd:extension base="HeartRateValue_t">
676 <xsd:sequence>
677 <xsd:element name="Value" type="positiveByte"/>
678 </xsd:sequence>
679 </xsd:extension>
680 </xsd:complexContent>
681 </xsd:complexType>
682 <xsd:complexType name="HeartRateAsPercentOfMax_t">
683 <xsd:complexContent>
684 <xsd:extension base="HeartRateValue_t">
685 <xsd:sequence>
686 <xsd:element name="Value" type="PercentOfMax_t"/>
687 </xsd:sequence>
688 </xsd:extension>
689 </xsd:complexContent>
690 </xsd:complexType>
691 <xsd:simpleType name="PercentOfMax_t">
692 <xsd:restriction base="xsd:unsignedByte">
693 <xsd:minInclusive value="0"/>
694 <xsd:maxInclusive value="100"/>
695 </xsd:restriction>
696 </xsd:simpleType>
697 <xsd:simpleType name="positiveByte">
698 <xsd:restriction base="xsd:unsignedByte">
699 <xsd:minInclusive value="1"/>
700 </xsd:restriction>
701 </xsd:simpleType>
702 <xsd:simpleType name="Gender_t">
703 <xsd:restriction base="Token_t">
704 <xsd:enumeration value="Male"/>
705 <xsd:enumeration value="Female"/>
706 </xsd:restriction>
707 </xsd:simpleType>
708 <xsd:complexType name="Courses_t">
709 <xsd:sequence>
710 <xsd:element name="CourseFolder" type="CourseFolder_t">
711 <xsd:unique name="CourseSubFolderNamesMustBeUnique">
712 <xsd:selector xpath="tc2:CourseFolder"/>
713 <xsd:field xpath="@Name"/>
714 </xsd:unique>
715 </xsd:element>
716 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
717 <xsd:annotation>
718 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
719 </xsd:annotation>
720 </xsd:element>
721 </xsd:sequence>
722 </xsd:complexType>
723 <xsd:complexType name="CourseFolder_t">
724 <xsd:sequence>
725 <xsd:element name="Folder" type="CourseFolder_t" minOccurs="0" maxOccurs="unbounded"/>
726 <xsd:element name="CourseNameRef" type="NameKeyReference_t" minOccurs="0" maxOccurs="unbounded"/>
727 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
728 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
729 <xsd:annotation>
730 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
731 </xsd:annotation>
732 </xsd:element>
733 </xsd:sequence>
734 <xsd:attribute name="Name" type="xsd:string" use="required"/>
735 </xsd:complexType>
736 <xsd:complexType name="Course_t">
737 <xsd:sequence>
738 <xsd:element name="Name" type="RestrictedToken_t"/>
739 <xsd:element name="Lap" type="CourseLap_t" minOccurs="0" maxOccurs="unbounded"/>
740 <xsd:element name="Track" type="Track_t" minOccurs="0" maxOccurs="unbounded"/>
741 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
742 <xsd:element name="CoursePoint" type="CoursePoint_t" minOccurs="0" maxOccurs="unbounded"/>
743 <xsd:element name="Creator" type="AbstractSource_t" minOccurs="0"/>
744 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
745 <xsd:annotation>
746 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
747 </xsd:annotation>
748 </xsd:element>
749 </xsd:sequence>
750 </xsd:complexType>
751 <xsd:complexType name="CourseLap_t">
752 <xsd:sequence>
753 <xsd:element name="TotalTimeSeconds" type="xsd:double"/>
754 <xsd:element name="DistanceMeters" type="xsd:double"/>
755 <xsd:element name="BeginPosition" type="Position_t" minOccurs="0"/>
756 <xsd:element name="BeginAltitudeMeters" type="xsd:double" minOccurs="0"/>
757 <xsd:element name="EndPosition" type="Position_t" minOccurs="0"/>
758 <xsd:element name="EndAltitudeMeters" type="xsd:double" minOccurs="0"/>
759 <xsd:element name="AverageHeartRateBpm" type="HeartRateInBeatsPerMinute_t" minOccurs="0"/>
760 <xsd:element name="MaximumHeartRateBpm" type="HeartRateInBeatsPerMinute_t" minOccurs="0"/>
761 <xsd:element name="Intensity" type="Intensity_t"/>
762 <xsd:element name="Cadence" type="CadenceValue_t" minOccurs="0"/>
763 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
764 <xsd:annotation>
765 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
766 </xsd:annotation>
767 </xsd:element>
768 </xsd:sequence>
769 </xsd:complexType>
770 <xsd:complexType name="CoursePoint_t">
771 <xsd:sequence>
772 <xsd:element name="Name" type="CoursePointName_t"/>
773 <xsd:element name="Time" type="xsd:dateTime"/>
774 <xsd:element name="Position" type="Position_t"/>
775 <xsd:element name="AltitudeMeters" type="xsd:double" minOccurs="0"/>
776 <xsd:element name="PointType" type="CoursePointType_t"/>
777 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
778 <xsd:element name="Extensions" type="Extensions_t" minOccurs="0">
779 <xsd:annotation>
780 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
781 </xsd:annotation>
782 </xsd:element>
783 </xsd:sequence>
784 </xsd:complexType>
785 <xsd:simpleType name="CoursePointName_t">
786 <xsd:restriction base="Token_t">
787 <xsd:minLength value="1"/>
788 <xsd:maxLength value="10"/>
789 </xsd:restriction>
790 </xsd:simpleType>
791 <xsd:simpleType name="CoursePointType_t">
792 <xsd:restriction base="Token_t">
793 <xsd:enumeration value="Generic"/>
794 <xsd:enumeration value="Summit"/>
795 <xsd:enumeration value="Valley"/>
796 <xsd:enumeration value="Water"/>
797 <xsd:enumeration value="Food"/>
798 <xsd:enumeration value="Danger"/>
799 <xsd:enumeration value="Left"/>
800 <xsd:enumeration value="Right"/>
801 <xsd:enumeration value="Straight"/>
802 <xsd:enumeration value="First Aid"/>
803 <xsd:enumeration value="4th Category"/>
804 <xsd:enumeration value="3rd Category"/>
805 <xsd:enumeration value="2nd Category"/>
806 <xsd:enumeration value="1st Category"/>
807 <xsd:enumeration value="Hors Category"/>
808 <xsd:enumeration value="Sprint"/>
809 </xsd:restriction>
810 </xsd:simpleType>
811 <xsd:complexType name="Extensions_t">
812 <xsd:sequence>
813 <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
814 <xsd:annotation>
815 <xsd:documentation>You can extend Training Center by adding your own elements from another schema here.</xsd:documentation>
816 </xsd:annotation>
817 </xsd:any>
818 </xsd:sequence>
819 </xsd:complexType>
820</xsd:schema>
Note: See TracBrowser for help on using the repository browser.