<?xml version="1.0" encoding="utf-8" ?> 
	<xs:schema 
		xmlns:xs="http://www.w3.org/2001/XMLSchema" 
		xmlns="http://www.rijwind.be/accelerometry"
		targetNamespace="http://www.rijwind.be/accelerometry"
		elementFormDefault="qualified" attributeFormDefault="unqualified" >

	<xs:annotation><xs:documentation>
		Schema to create time series of accelerometric measurements
		This schema is defined to be included as extentions-data in a GPX 1.1 document
	</xs:documentation></xs:annotation>

<xs:complexType name="timeseries">
	<xs:annotation><xs:documentation>
		A timestamp with microsecond precision and a set of samples from an accelerometer can be listed via this element.
	</xs:documentation></xs:annotation>
		<xs:sequence>
				<xs:element name="time" type="xs:dateTime" minOccurs="1" maxOccurs="1"/>
				<xs:element name="sample" type="sampleType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
</xs:complexType>

<xs:complexType name="sampleType">
	<xs:annotation><xs:documentation>
		A sample is built from a required time element and
		values in x-, y- and z-directions taken from an accelerometer
	</xs:documentation></xs:annotation>
	<xs:attribute name="time" type="xs:dateTime" use="required"/>
	<xs:attribute name="x" type="xs:decimal" use="optional"/>
	<xs:attribute name="y" type="xs:decimal" use="optional"/>
	<xs:attribute name="z" type="xs:decimal" use="optional"/>
</xs:complexType>

</xs:schema>

