grass-gxm.dtd 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!-- grass-gxm.dtd
  2. Copyright (C) 2010 by the GRASS Development Team
  3. Author: Martin Landa <landa.martin gmail.com>
  4. This program is free software under the GPL (>=v2)
  5. Read the file COPYING coming with GRASS for details.
  6. -->
  7. <!--
  8. grass-gxm defines model file content
  9. -->
  10. <!ELEMENT grass-gxm (gxm)>
  11. <!ELEMENT gxm (action*, data*, loop*, properties?, variables?)>
  12. <!-- an action defines action properties (usually GRASS modules)
  13. -->
  14. <!ELEMENT action (comment?, task)>
  15. <!ATTLIST action id CDATA #REQUIRED>
  16. <!ATTLIST action name CDATA #REQUIRED>
  17. <!ATTLIST action pos CDATA #REQUIRED>
  18. <!ATTLIST action size CDATA #REQUIRED>
  19. <!-- action comment
  20. -->
  21. <!ELEMENT comment (#PCDATA)>
  22. <!-- a task describes the interface of a single
  23. GRASS command
  24. -->
  25. <!ELEMENT task (flag*, parameter*, disabled?)>
  26. <!ATTLIST task name CDATA #REQUIRED>
  27. <!-- defines task to be enabled/disabled
  28. -->
  29. <!ELEMENT disabled EMPTY>
  30. <!-- a parameter must have a name and a value
  31. -->
  32. <!ELEMENT parameter (value, parameterized?)>
  33. <!ATTLIST parameter name CDATA #REQUIRED>
  34. <!-- value of parameter
  35. -->
  36. <!ELEMENT value (#PCDATA)>
  37. <!-- parameterized
  38. -->
  39. <!ELEMENT parameterized EMPTY>
  40. <!-- enabled flag
  41. -->
  42. <!ELEMENT flag EMPTY>
  43. <!ATTLIST flag name CDATA #REQUIRED>
  44. <!ATTLIST parameterized (0|1) #IMPLIED>
  45. <!-- a data defines data properties (usually data layers)
  46. -->
  47. <!ELEMENT data (data-parameter, intermediate?, relation*)>
  48. <!ATTLIST data pos CDATA #REQUIRED>
  49. <!ATTLIST data size CDATA #REQUIRED>
  50. <!-- a data-parameter defines data items properties
  51. -->
  52. <!ELEMENT data-parameter (value)>
  53. <!ATTLIST data-parameter prompt CDATA #REQUIRED>
  54. <!-- a data intermediate?
  55. -->
  56. <!ELEMENT intermediate EMPTY>
  57. <!-- a relation defines relation between data and actions
  58. -->
  59. <!ELEMENT relation (point*)>
  60. <!ATTLIST relation id CDATA #REQUIRED>
  61. <!ATTLIST relation dir (from | to) #REQUIRED>
  62. <!ATTLIST relation name CDATA #REQUIRED>
  63. <!-- a point defines control point of linear shape
  64. -->
  65. <!ELEMENT point (x, y)>
  66. <!ELEMENT x (#PCDATA)>
  67. <!ELEMENT y (#PCDATA)>
  68. <!-- a properties describes model properties
  69. -->
  70. <!ELEMENT properties (name?, description?, author?, flag*)>
  71. <!ELEMENT name (#PCDATA)>
  72. <!ELEMENT description (#PCDATA)>
  73. <!ELEMENT author (#PCDATA)>
  74. <!-- a variable describes model variable
  75. -->
  76. <!ELEMENT variables (variable*)>
  77. <!ELEMENT variable (description?, value?)>
  78. <!ATTLIST variable name CDATA #REQUIRED>
  79. <!ATTLIST variable type (integer | float | string) #REQUIRED>
  80. <!-- a loop describes model loops
  81. -->
  82. <!ELEMENT loop (condition)>
  83. <!ELEMENT condition (#PCDATA)>