2010-07-08 20:29:17 +02:00
|
|
|
<!ELEMENT schemalist (schema|enum)* >
|
2010-04-19 20:04:42 +02:00
|
|
|
<!ATTLIST schemalist gettext-domain #IMPLIED >
|
|
|
|
|
|
|
|
<!ELEMENT schema (key|child)* >
|
|
|
|
<!ATTLIST schema id CDATA #REQUIRED
|
|
|
|
path CDATA #IMPLIED
|
|
|
|
gettext-domain CDATA #IMPLIED >
|
|
|
|
|
2010-07-08 20:29:17 +02:00
|
|
|
<!-- defines an enumerated type -->
|
|
|
|
<!-- each value element maps a nick to a numeric value -->
|
|
|
|
<!ELEMENT enum (value*) >
|
|
|
|
<!ATTLIST enum id CDATA #REQUIRED >
|
|
|
|
<!ELEMENT value EMPTY >
|
|
|
|
<!-- nick must be at least 2 characters long -->
|
|
|
|
<!-- value must be parsable as a 32-bit integer -->
|
|
|
|
<!ELEMENT value nick #REQUIRED
|
|
|
|
value #REQUIRED >
|
|
|
|
|
|
|
|
<!ELEMENT key (default|summary?|description?|range?|choices?|aliases?) >
|
2010-04-19 20:04:42 +02:00
|
|
|
<!-- name can only contain lowercase letters, numbers and '-' -->
|
|
|
|
<!-- type must be a GVariant type string -->
|
2010-07-08 20:29:17 +02:00
|
|
|
<!-- enum must be the id of an enum that has been defined earlier -->
|
|
|
|
<!-- exactly one of enum or type must be given -->
|
2010-04-19 20:04:42 +02:00
|
|
|
<!ATTLIST key name CDATA #REQUIRED
|
2010-07-08 20:29:17 +02:00
|
|
|
type CDATA #IMPLIED
|
|
|
|
enum CDATA #IMPLIED >
|
2010-04-19 20:04:42 +02:00
|
|
|
|
|
|
|
<!-- 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) >
|
|
|
|
|
2010-07-08 20:29:17 +02:00
|
|
|
<!-- range is only allowed for keys with numeric type -->
|
2010-04-26 02:59:59 +02:00
|
|
|
<!ELEMENT range EMPTY >
|
2010-07-08 20:29:17 +02:00
|
|
|
<!-- min and max must be parseable as values of the key type and min < max -->
|
2010-04-26 02:59:59 +02:00
|
|
|
<!ATTLIST range min CDATA #REQUIRED
|
|
|
|
max CDATA #REQUIRED >
|
2010-04-19 20:04:42 +02:00
|
|
|
|
2010-07-08 20:29:17 +02:00
|
|
|
<!-- choices is only allowed for keys with string or string array type -->
|
2010-04-19 20:04:42 +02:00
|
|
|
<!ELEMENT choices (choice+) >
|
2010-07-08 20:29:17 +02:00
|
|
|
<!-- each choice element specifies one possible value -->
|
|
|
|
<!ELEMENT choice EMPTY >
|
2010-04-19 20:04:42 +02:00
|
|
|
<!ATTLIST choice value CDATA #REQUIRED >
|
2010-07-08 20:29:17 +02:00
|
|
|
|
|
|
|
<!-- aliases is only allowed for keys with enumerated type or with choices -->
|
|
|
|
<!ELEMENT aliases (alias+) >
|
|
|
|
<!-- each alias element specifies an alias for one of the possible values -->
|
2010-04-19 20:04:42 +02:00
|
|
|
<!ELEMENT alias EMPTY >
|
|
|
|
<!ATTLIST alias value CDATA #REQUIRED >
|
|
|
|
|
|
|
|
<!ELEMENT child EMPTY >
|
|
|
|
<!ATTLIST child name CDATA #REQUIRED
|
|
|
|
schema CDATA #REQUIRED >
|