3
Copyright (C) 2010 by the GRASS Development Team
4
Author: Martin Landa <landa.martin gmail.com>
6
This program is free software under the GPL (>=v2)
7
Read the file COPYING coming with GRASS for details.
12
grass-gxm defines model file content
15
<!ELEMENT grass-gxm (gxm)>
17
<!ELEMENT gxm (action*, data*, loop*, properties?, variables?)>
19
<!-- an action defines action properties (usually GRASS modules)
21
<!ELEMENT action (task)>
22
<!ATTLIST action id CDATA #REQUIRED>
23
<!ATTLIST action name CDATA #REQUIRED>
24
<!ATTLIST action pos CDATA #REQUIRED>
25
<!ATTLIST action size CDATA #REQUIRED>
27
<!-- a task describes the interface of a single
30
<!ELEMENT task (flag*, parameter*, disabled?)>
31
<!ATTLIST task name CDATA #REQUIRED>
33
<!-- defines task to be enabled/disabled
35
<!ELEMENT disabled EMPTY>
37
<!-- a parameter must have a name and a value
39
<!ELEMENT parameter (value, parameterized?)>
40
<!ATTLIST parameter name CDATA #REQUIRED>
42
<!-- value of parameter
44
<!ELEMENT value (#PCDATA)>
48
<!ELEMENT parameterized EMPTY>
53
<!ATTLIST flag name CDATA #REQUIRED>
54
<!ATTLIST parameterized (0|1) #IMPLIED>
56
<!-- a data defines data properties (usually data layers)
58
<!ELEMENT data (data-parameter, intermediate?, relation*)>
59
<!ATTLIST data pos CDATA #REQUIRED>
60
<!ATTLIST data size CDATA #REQUIRED>
62
<!-- a data-parameter defines data items properties
64
<!ELEMENT data-parameter (value)>
65
<!ATTLIST data-parameter prompt CDATA #REQUIRED>
67
<!-- a data intermediate?
69
<!ELEMENT intermediate EMPTY>
71
<!-- a relation defines relation between data and actions
73
<!ELEMENT relation (point*)>
74
<!ATTLIST relation id CDATA #REQUIRED>
75
<!ATTLIST relation dir (from | to) #REQUIRED>
76
<!ATTLIST relation name CDATA #REQUIRED>
78
<!-- a point defines control point of linear shape
80
<!ELEMENT point (x, y)>
81
<!ELEMENT x (#PCDATA)>
82
<!ELEMENT y (#PCDATA)>
84
<!-- a properties describes model properties
86
<!ELEMENT properties (name?, description?, author?, flag*)>
87
<!ELEMENT name (#PCDATA)>
88
<!ELEMENT description (#PCDATA)>
89
<!ELEMENT author (#PCDATA)>
91
<!-- a variable describes model variable
93
<!ELEMENT variables (variable*)>
94
<!ELEMENT variable (description?, value?)>
95
<!ATTLIST variable name CDATA #REQUIRED>
96
<!ATTLIST variable type (integer | float | string) #REQUIRED>
98
<!-- a loop describes model loops
100
<!ELEMENT loop (condition)>
101
<!ELEMENT condition (#PCDATA)>