XML Schema Documentation

XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://www.awayteam.co.uk/Gpx11GpsLocationExtension/v2
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition
  • This schema imports schema(s) from the following namespace(s):
    • http://www.topografix.com/GPX/1/1 (at http://www.topografix.com/GPX/1/1/gpx.xsd)
Documentation This schema defines an extension for including additional GPS location data, including those defined by Java Specification Request Location API (JSR 179). The root elements defined by this schema are intended to be used as child elements of the "extensions" element in the GPX 1.1 schema, http://www.topografix.com/GPX/1/1/gpx.xsd.

See http://www.awayteam.co.uk/Gpx11GpsLocationExtension/v2 for information about this namespace.

Declared Namespaces

Prefix Namespace
Default namespace http://www.awayteam.co.uk/Gpx11GpsLocationExtension/v2
xml http://www.w3.org/XML/1998/namespace
gpx11 http://www.topografix.com/GPX/1/1
xs http://www.w3.org/2001/XMLSchema
Schema Component Representation
<xs:schema targetNamespace="http://www.awayteam.co.uk/Gpx11GpsLocationExtension/v2" elementFormDefault="qualified">
<xs:import namespace="http://www.topografix.com/GPX/1/1" schemaLocation="http://www.topografix.com/GPX/1/1/gpx.xsd"/>
...
</xs:schema>
top

Global Declarations

Element: gpsloc

Name gpsloc
Type gpsLocationType
Nillable no
Abstract no
XML Instance Representation
<gpsloc>
<hacc> nonNegativeRealType </hacc> [0..1] ?
<speed> nonNegativeRealType </speed> [0..1] ?
<course> gpx11:degreesType </course> [0..1] ?
<vacc> nonNegativeRealType </vacc> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
</gpsloc>
Schema Component Representation
<xs:element name="gpsloc" type="gpsLocationType"/>
top

Element: label

Name label
Type labelType
Nillable no
Abstract no
XML Instance Representation
<label>
<text> xs:string </text> [0..1] ?
<tag> xs:string </tag> [0..1] ?
<link> linkType </link> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
</label>
Schema Component Representation
<xs:element name="label" type="labelType"/>
top

Global Definitions

Complex Type: extensionsType

Super-types: None
Sub-types: None
Name extensionsType
Abstract no
Documentation Allow any elements from a namespace other than this schema's namespace (lax validation).
XML Instance Representation
<...>
Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>
Schema Component Representation
<xs:complexType name="extensionsType">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: gpsLocationType

Super-types: None
Sub-types: None
Name gpsLocationType
Abstract no
Documentation Contains data fields available from a GPS Location object, defined by Java Specification Request Location API (JSR 179), that cannot be represented in a Track Point under the GPX 1.1 schema.
XML Instance Representation
<...>
<hacc> nonNegativeRealType </hacc> [0..1] ?
<speed> nonNegativeRealType </speed> [0..1] ?
<course> gpx11:degreesType </course> [0..1] ?
<vacc> nonNegativeRealType </vacc> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
</...>
Schema Component Representation
<xs:complexType name="gpsLocationType">
<xs:sequence>
<xs:element name="hacc" type="nonNegativeRealType" minOccurs="0"/>
<xs:element name="speed" type="nonNegativeRealType" minOccurs="0"/>
<xs:element name="course" type="gpx11:degreesType" minOccurs="0"/>
<xs:element name="vacc" type="nonNegativeRealType" minOccurs="0"/>
<xs:element name="extensions" type="extensionsType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: labelType

Super-types: None
Sub-types: None
Name labelType
Abstract no
Documentation Contains labelling information for this location at this time.
XML Instance Representation
<...>
<text> xs:string </text> [0..1] ?
<tag> xs:string </tag> [0..1] ?
<link> linkType </link> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
</...>
Schema Component Representation
<xs:complexType name="labelType">
<xs:sequence>
<xs:element name="text" type="xs:string" minOccurs="0"/>
<xs:element name="tag" type="xs:string" minOccurs="0"/>
<xs:element name="link" type="linkType" minOccurs="0"/>
<xs:element name="extensions" type="extensionsType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: linkType

Super-types: None
Sub-types: None
Name linkType
Abstract no
Documentation Link to an external resource (e.g. web page, digital photo, video clip, etc) with additional information
XML Instance Representation
<...
href="/xs:anyURI [1] ?">
<text> xs:string </text> [0..1] ?
<type> xs:string </type> [0..1] ?
</...>
Schema Component Representation
<xs:complexType name="linkType">
<xs:sequence>
<-- elements must appear in this order -->
<xs:element name="text" type="xs:string" minOccurs="0"/>
<xs:element name="type" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="href" type="xs:anyURI" use="required"/>
</xs:complexType>
top

Simple Type: nonNegativeRealType

Super-types: xs:decimal < nonNegativeRealType (by restriction)
Sub-types: None
Name nonNegativeRealType
Content
  • Base XSD Type: decimal
  • value >= 0.0
Documentation Non negative real number.
Schema Component Representation
<xs:simpleType name="nonNegativeRealType">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0"/>
</xs:restriction>
</xs:simpleType>
top