glib/gio/gschema.dtd
Ryan Lortie 22ce6ed82d Add range restriction to gschema-compiler
Patch from Christian Persch, with minor modifications.

Bug #616102
2010-04-25 20:06:13 -05:00

41 lines
1.4 KiB
DTD

<!ELEMENT schemalist (schema*) >
<!ATTLIST schemalist gettext-domain #IMPLIED >
<!ELEMENT schema (key|child)* >
<!ATTLIST schema id CDATA #REQUIRED
path CDATA #IMPLIED
gettext-domain CDATA #IMPLIED >
<!ELEMENT key (default|summary?|description?|range?|choices?) >
<!-- name can only contain lowercase letters, numbers and '-' -->
<!-- type must be a GVariant type string -->
<!ATTLIST key name CDATA #REQUIRED
type CDATA #REQUIRED >
<!-- the default value is specified a a serialized GVariant,
i.e. you have to include the quotes when specifying a string -->
<!ELEMENT default (#PCDATA) >
<!-- the presence of the l10n attribute marks a default value for
translation, its value is the gettext category to use -->
<!-- if context is present, it specifies msgctxt to use -->
<!ATTLIST default l10n (messages|time) #IMPLIED
context CDATA #IMPLIED >
<!ELEMENT summary (#PCDATA) >
<!ELEMENT description (#PCDATA) >
<!ELEMENT range EMPTY >
<!ATTLIST range min CDATA #REQUIRED
max CDATA #REQUIRED >
<!ELEMENT choices (choice+) >
<!ELEMENT choice (alias?) >
<!ATTLIST choice value CDATA #REQUIRED >
<!ELEMENT choice (alias?) >
<!ELEMENT alias EMPTY >
<!ATTLIST alias value CDATA #REQUIRED >
<!ELEMENT child EMPTY >
<!ATTLIST child name CDATA #REQUIRED
schema CDATA #REQUIRED >