1 |
bh |
1245 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
|
|
<!-- thuban.dtd |
3 |
|
|
|
4 |
|
|
Copyright (C) 2001, 2003 by Intevation GmbH |
5 |
|
|
Authors: |
6 |
|
|
Jan-Oliver Wagner <[email protected]> |
7 |
|
|
|
8 |
|
|
This program is free software under the GPL (>=v2) |
9 |
|
|
Read the file COPYING coming with Thuban for details. |
10 |
|
|
|
11 |
bh |
1255 |
This DTD covers .thuban files for Thuban versions up to 0.2 and most |
12 |
|
|
of the .thuban files generated by development/CVS versions of Thuban |
13 |
|
|
between 0.2 and 0.8. |
14 |
|
|
--> |
15 |
|
|
|
16 |
bh |
1245 |
<!-- a session contains a number of maps and tables |
17 |
|
|
--> |
18 |
|
|
<!ELEMENT session (map*, table*)> |
19 |
|
|
<!ATTLIST session title CDATA #REQUIRED> |
20 |
|
|
|
21 |
|
|
<!-- a map consists of a number of layers |
22 |
|
|
the projection refers to the projection |
23 |
|
|
used for discplaing the map. If the projection |
24 |
|
|
is missing, geographic coordinates in decimal |
25 |
|
|
degrees are assumed. |
26 |
|
|
--> |
27 |
bh |
1255 |
<!ELEMENT map (projection?, (layer | rasterlayer)*, labellayer?)> |
28 |
bh |
1245 |
<!ATTLIST map title CDATA #REQUIRED> |
29 |
|
|
|
30 |
|
|
<!-- a layer represents a set of geographic objects. |
31 |
|
|
pointers to the actual data are stored. |
32 |
|
|
currently only a filename points to the data. |
33 |
|
|
the projection refers to the projection |
34 |
|
|
in which the data are stored. If the projection |
35 |
|
|
is missing, geographic coordinates in decimal |
36 |
|
|
degrees are assumed. Visibility is assumed true |
37 |
|
|
unless otherwise specified. |
38 |
|
|
--> |
39 |
|
|
<!ELEMENT layer (projection?, classification?)> |
40 |
|
|
<!ATTLIST layer title CDATA #REQUIRED> |
41 |
|
|
<!ATTLIST layer filename CDATA #REQUIRED> |
42 |
|
|
<!ATTLIST layer visible (true|false) "true"> |
43 |
|
|
|
44 |
|
|
<!-- the fill and stroke attributes can be either "None" or "#RRGGBB" |
45 |
|
|
RGB hex values |
46 |
|
|
|
47 |
|
|
All of fill, stroke and stroke_width may be omitted and default to |
48 |
|
|
"None", "#000000" and "1" respectively. |
49 |
|
|
--> |
50 |
|
|
<!ATTLIST layer fill CDATA "None"> |
51 |
|
|
<!ATTLIST layer stroke CDATA "#000000"> |
52 |
|
|
<!ATTLIST layer stroke_width CDATA "1"> |
53 |
|
|
|
54 |
|
|
<!-- a rasterlayer represents an image that has some geographic data |
55 |
|
|
associated with it. The filename points to the image used. |
56 |
|
|
--> |
57 |
|
|
<!ELEMENT rasterlayer (projection?, classification?)> |
58 |
|
|
<!ATTLIST rasterlayer title CDATA #REQUIRED> |
59 |
|
|
<!ATTLIST rasterlayer filename CDATA #REQUIRED> |
60 |
|
|
<!ATTLIST rasterlayer visible (true|false) "true"> |
61 |
|
|
|
62 |
|
|
<!-- Classification data --> |
63 |
|
|
<!ELEMENT classification (clnull?, (clpoint | clrange | clcont)*)> |
64 |
|
|
<!ATTLIST classification field CDATA #REQUIRED> |
65 |
|
|
<!ATTLIST classification field_type CDATA #REQUIRED> |
66 |
|
|
|
67 |
|
|
<!ELEMENT clnull (cldata*)> |
68 |
|
|
<!ELEMENT clpoint (cldata*)> |
69 |
|
|
<!ELEMENT clrange (cldata*)> |
70 |
|
|
<!ELEMENT clcont (cldata*)> |
71 |
|
|
|
72 |
|
|
<!ATTLIST clnull label CDATA #IMPLIED> |
73 |
|
|
|
74 |
|
|
<!ATTLIST clpoint value CDATA #REQUIRED> |
75 |
|
|
<!ATTLIST clpoint label CDATA #IMPLIED> |
76 |
|
|
|
77 |
|
|
<!ATTLIST clrange min CDATA #IMPLIED> |
78 |
|
|
<!ATTLIST clrange max CDATA #IMPLIED> |
79 |
|
|
<!ATTLIST clrange range CDATA #IMPLIED> |
80 |
|
|
<!ATTLIST clrange label CDATA #IMPLIED> |
81 |
|
|
|
82 |
|
|
<!ATTLIST clcont rmin CDATA #REQUIRED> |
83 |
|
|
<!ATTLIST clcont rmax CDATA #REQUIRED> |
84 |
|
|
<!ATTLIST clcont dmin CDATA #REQUIRED> |
85 |
|
|
<!ATTLIST clcont dmax CDATA #REQUIRED> |
86 |
|
|
|
87 |
|
|
<!ELEMENT cldata EMPTY> |
88 |
|
|
<!ATTLIST cldata |
89 |
|
|
stroke CDATA #IMPLIED |
90 |
|
|
stroke_width CDATA #IMPLIED |
91 |
|
|
fill CDATA #IMPLIED |
92 |
|
|
> |
93 |
|
|
|
94 |
|
|
<!-- a table points to the actual file that |
95 |
|
|
contains the tabular data. |
96 |
|
|
--> |
97 |
|
|
<!ELEMENT table EMPTY> |
98 |
|
|
<!ATTLIST table title CDATA #REQUIRED> |
99 |
|
|
<!ATTLIST table filename CDATA #REQUIRED> |
100 |
|
|
|
101 |
|
|
<!-- a projection has a number of parameters |
102 |
|
|
--> |
103 |
|
|
<!ELEMENT projection (parameter*)> |
104 |
|
|
<!ATTLIST projection |
105 |
|
|
name CDATA #IMPLIED > |
106 |
|
|
|
107 |
|
|
<!-- just a simple parameter consisting of a value |
108 |
|
|
--> |
109 |
|
|
<!ELEMENT parameter EMPTY> |
110 |
|
|
<!ATTLIST parameter value CDATA #REQUIRED> |
111 |
|
|
|
112 |
|
|
|
113 |
|
|
<!-- The label layer contains text labels --> |
114 |
|
|
<!ELEMENT labellayer (label*) > |
115 |
|
|
|
116 |
|
|
<!ELEMENT label EMPTY> |
117 |
|
|
<!ATTLIST label |
118 |
|
|
x CDATA #REQUIRED |
119 |
|
|
y CDATA #REQUIRED |
120 |
|
|
text CDATA #REQUIRED |
121 |
|
|
halign (left|center|right) #REQUIRED |
122 |
|
|
valign (top|center|bottom) #REQUIRED> |