opm-core/opm/core/utility/parameters/param.dtd
Roland Kaufmann 0fb4f14b28 Provide DTD schema to describe parameter file format
Notice that this definition specifies a superset of the actual format
as the ParameterGroup tag is context-dependent (which cannot be captured
by DTD schemata).
2013-05-13 10:50:22 +02:00

27 lines
1.2 KiB
DTD

<!-- parameter groups contains nested groups, values, or
inclusion from files (either at this level, or as a sub-group) -->
<!ELEMENT ParameterGroup (ParameterGroup |
Parameter |
ParameterGroupFromFile |
MergeWithFile)*>
<!-- note: top-level group has implied name, sub-groups must be specified -->
<!ATTLIST ParameterGroup name NMTOKEN #IMPLIED>
<!-- single value parameters. filenames can have either relative or absolute paths -->
<!ELEMENT Parameter EMPTY>
<!ATTLIST Parameter type (bool | int | double | string | file | cmdline) #REQUIRED
name NMTOKEN #REQUIRED
value CDATA #REQUIRED
>
<!-- include parameters from another file, as a named sub-group
(the nameless top-level in that file becomes "name" in this) -->
<!ELEMENT ParameterGroupFromFile EMPTY>
<!ATTLIST ParameterGroupFromFile name NMTOKEN #REQUIRED
value CDATA #REQUIRED
>
<!-- include parameters from another file as if they were given on this level -->
<!ELEMENT MergeWithFile EMPTY>
<!ATTLIST MergeWithFile value CDATA #REQUIRED>