Fix up the gschema.dtd

This DTD wasn't syntactically correct, and didn't actually
describe keys correctly. This change makes it a bit too lax,
but at least it can be used now.
https://bugzilla.gnome.org/show_bug.cgi?id=690538
This commit is contained in:
Matthias Clasen 2012-12-29 00:22:34 -05:00
parent 12ad403a43
commit a9f363733b

View File

@ -1,5 +1,5 @@
<!ELEMENT schemalist (schema|enum)* > <!ELEMENT schemalist (schema|enum)* >
<!ATTLIST schemalist gettext-domain #IMPLIED > <!ATTLIST schemalist gettext-domain CDATA #IMPLIED >
<!ELEMENT schema (key|child|override)* > <!ELEMENT schema (key|child|override)* >
<!ATTLIST schema id CDATA #REQUIRED <!ATTLIST schema id CDATA #REQUIRED
@ -19,10 +19,10 @@
<!ELEMENT value EMPTY > <!ELEMENT value EMPTY >
<!-- nick must be at least 2 characters long --> <!-- nick must be at least 2 characters long -->
<!-- value must be parsable as a 32-bit integer --> <!-- value must be parsable as a 32-bit integer -->
<!ELEMENT value nick #REQUIRED <!ATTLIST value nick CDATA #REQUIRED
value #REQUIRED > value CDATA #REQUIRED >
<!ELEMENT key (default|summary?|description?|range?|choices?|aliases?) > <!ELEMENT key (default|summary?|description?|range?|choices?|aliases?)* >
<!-- name can only contain lowercase letters, numbers and '-' --> <!-- name can only contain lowercase letters, numbers and '-' -->
<!-- type must be a GVariant type string --> <!-- type must be a GVariant type string -->
<!-- enum must be the id of an enum type that has been defined earlier --> <!-- enum must be the id of an enum type that has been defined earlier -->