Revert "Merge branch 'use-trunc-rounding' into rounding-fixes"
[gpstools.git] / Tools / dtd / gpx / gpx-1.1.dtd
blob255596d613293ec99c000efbb94d58118d71d869
1 <!-- gpx-1.1.dtd -->
2 <!-- File ID: 7e233ba2-10a4-11de-8008-000475e441b9 -->
4 <!--
5 Unofficial Document Type Definition for GPX ver. 1.1
6 Created by Øyvind A. Holm - sunny@sunbase.org
7 License: GNU General Public License version 3 or later
9 FIXME: ptseg and pt elements are not included, don’t know where to put
10 them. Didn’t find any example GPX files which uses it.
11 -->
13 <!ELEMENT gpx (metadata?,wpt*,rte*,trk*,extensions?)>
14 <!ATTLIST gpx
15 version CDATA #FIXED "1.1"
16 creator CDATA #REQUIRED
17 xsi:schemaLocation CDATA #IMPLIED
18 xmlns CDATA #IMPLIED
19 xmlns:xsi CDATA #IMPLIED
22 <!ELEMENT metadata (name?,desc?,author?,copyright?,link*,time?,keywords?,
23 bounds?,extensions?)
25 <!ELEMENT wpt (ele?,time?,magvar?,geoidheight?,name?,cmt?,desc?,src?,
26 link*,sym?,type?,fix?,sat?,hdop?,vdop?,pdop?,ageofdgpsdata?,dgpsid?,
27 extensions?)
29 <!ATTLIST wpt
30 lat CDATA #REQUIRED
31 lon CDATA #REQUIRED
33 <!ELEMENT rte (name?,cmt?,desc?,src?,link*,number?,type?,extensions?,rtept*)>
34 <!ELEMENT trk (name?,cmt?,desc?,src?,link*,number?,type?,extensions?,trkseg*)>
35 <!ELEMENT extensions ANY>
36 <!ELEMENT name (#PCDATA)>
37 <!ELEMENT desc (#PCDATA)>
38 <!ELEMENT author (name?,email?,link?)>
39 <!ELEMENT email EMPTY>
40 <!ATTLIST email
41 id CDATA #REQUIRED
42 domain CDATA #REQUIRED
44 <!ELEMENT link (text?,type?)>
45 <!ATTLIST link
46 href CDATA #REQUIRED
48 <!ELEMENT text (#PCDATA)>
49 <!ELEMENT type (#PCDATA)>
50 <!ELEMENT copyright (year?,license?)>
51 <!ATTLIST copyright
52 author CDATA #REQUIRED
54 <!ELEMENT year (#PCDATA)>
55 <!ELEMENT license (#PCDATA)>
56 <!ELEMENT time (#PCDATA)>
57 <!ELEMENT keywords (#PCDATA)>
58 <!ELEMENT bounds EMPTY>
59 <!ATTLIST bounds
60 minlat CDATA #REQUIRED
61 minlon CDATA #REQUIRED
62 maxlat CDATA #REQUIRED
63 maxlon CDATA #REQUIRED
65 <!ELEMENT ele (#PCDATA)>
66 <!ELEMENT magvar (#PCDATA)>
67 <!ELEMENT geoidheight (#PCDATA)>
68 <!ELEMENT cmt (#PCDATA)>
69 <!ELEMENT src (#PCDATA)>
70 <!ELEMENT sym (#PCDATA)>
71 <!ELEMENT fix (#PCDATA)> <!-- none|2d|3d|dgps|pps -->
72 <!ELEMENT sat (#PCDATA)>
73 <!ELEMENT hdop (#PCDATA)>
74 <!ELEMENT vdop (#PCDATA)>
75 <!ELEMENT pdop (#PCDATA)>
76 <!ELEMENT ageofdgpsdata (#PCDATA)>
77 <!ELEMENT dgpsid (#PCDATA)>
78 <!ELEMENT number (#PCDATA)>
79 <!ELEMENT rtept (ele?,time?,magvar?,geoidheight?,name?,cmt?,desc?,src?,
80 link*,sym?,type?,fix?,sat?,hdop?,vdop?,pdop?,ageofdgpsdata?,dgpsid?,
81 extensions?)
83 <!ATTLIST rtept
84 lat CDATA #REQUIRED
85 lon CDATA #REQUIRED
87 <!ELEMENT trkseg (trkpt*,extensions?)>
88 <!ELEMENT trkpt (ele?,time?,magvar?,geoidheight?,name?,cmt?,desc?,src?,
89 link*,sym?,type?,fix?,sat?,hdop?,vdop?,pdop?,ageofdgpsdata?,dgpsid?,
90 extensions?)
92 <!ATTLIST trkpt
93 lat CDATA #REQUIRED
94 lon CDATA #REQUIRED