gconf schemas dtd



Hi

How about declaring an official dtd for the schemas files? (see my
proposal below)
 
Then hunting all files currently in cvs that do not validate and
correcting them. 
Which will greatly help intltool (after its fixed) or to do its
advertised job of merging the translations from the *.po files back to
where they belong. And possibly help other tools working on the schemas
files.

Lets say  gconf-1.0.dtd:
<!ELEMENT gconfschemafile (schemalist)>

<!ELEMENT schemalist (schema)*>

<!ELEMENT schema  (key,applyto*,owner?,type,default?,locale*)>

<!ELEMENT key     (#PCDATA)>

<!ELEMENT applyto (#PCDATA)>

<!ELEMENT owner   (#PCDATA)>

<!ELEMENT type    (#PCDATA)>

<!ELEMENT default (#PCDATA)>

<!ELEMENT locale  (default?,short?,long?)>
<!ATTLIST locale  name CDATA #REQUIRED>

<!ELEMENT short   (#PCDATA)>
<!ELEMENT long    (#PCDATA)>


which I think does express the format as described in the documentation
(http://developer.gnome.org/doc/API/gconf/c420.html#AEN426)

Thoughts?

Yanko.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]