• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!ELEMENT schemalist (schema|enum|flags)* >
2<!ATTLIST schemalist gettext-domain CDATA #IMPLIED >
3
4<!ELEMENT schema (key|child|override)* >
5<!ATTLIST schema id             CDATA #REQUIRED
6                 path           CDATA #IMPLIED
7                 gettext-domain CDATA #IMPLIED
8                 extends        CDATA #IMPLIED
9                 list-of        CDATA #IMPLIED >
10
11<!-- enumerated and flags types -->
12<!-- each value element maps a nick to a numeric value -->
13<!ELEMENT enum (value*) >
14<!ATTLIST enum id CDATA #REQUIRED >
15
16<!ELEMENT flags (value*) >
17<!ATTLIST flags id CDATA #REQUIRED >
18
19<!ELEMENT value EMPTY >
20<!-- nick must be at least 2 characters long -->
21<!-- value must be parsable as a 32-bit integer -->
22<!ATTLIST value nick  CDATA #REQUIRED
23                value CDATA #REQUIRED >
24
25<!ELEMENT key (default|summary?|description?|range?|choices?|aliases?)* >
26<!-- name can only contain lowercase letters, numbers and '-' -->
27<!-- type must be a GVariant type string -->
28<!-- enum must be the id of an enum type that has been defined earlier -->
29<!-- flags must be the id of a flags type that has been defined earlier -->
30<!-- exactly one of type, enum or flags must be given -->
31<!ATTLIST key name  CDATA #REQUIRED
32              type  CDATA #IMPLIED
33              enum  CDATA #IMPLIED
34              flags CDATA #IMPLIED >
35
36<!-- the default value is specified a a serialized GVariant,
37     i.e. you have to include the quotes when specifying a string -->
38<!ELEMENT default (#PCDATA) >
39<!-- the presence of the l10n attribute marks a default value for
40     translation, its value is the gettext category to use -->
41<!-- if context is present, it specifies msgctxt to use -->
42<!ATTLIST default l10n    (messages|time) #IMPLIED
43                  context CDATA           #IMPLIED >
44
45<!ELEMENT summary (#PCDATA) >
46<!ELEMENT description (#PCDATA) >
47
48<!-- range is only allowed for keys with numeric type -->
49<!ELEMENT range EMPTY >
50<!-- min and max must be parseable as values of the key type and
51     min must be less than or equal to max -->
52<!ATTLIST range min CDATA #IMPLIED
53                max CDATA #IMPLIED >
54
55<!-- choices is only allowed for keys with string or string array type -->
56<!ELEMENT choices (choice+) >
57<!-- each choice element specifies one possible value -->
58<!ELEMENT choice EMPTY >
59<!ATTLIST choice value CDATA #REQUIRED >
60
61<!-- aliases is only allowed for keys with enumerated type or with choices -->
62<!ELEMENT aliases (alias+) >
63<!-- each alias element specifies an alias for one of the possible values -->
64<!ELEMENT alias EMPTY >
65<!ATTLIST alias value  CDATA #REQUIRED
66                target CDATA #REQUIRED >
67
68<!ELEMENT child EMPTY >
69<!ATTLIST child name   CDATA #REQUIRED
70                schema CDATA #REQUIRED >
71
72<!ELEMENT override (#PCDATA) >
73<!ATTLIST override name    CDATA #REQUIRED
74                   l10n    CDATA #IMPLIED
75                   context CDATA #IMPLIED >
76