openSUSE / docmanager

Manage DocBook 5 Meta Information
http://opensuse.github.io/docmanager/index.html
GNU General Public License v3.0
6 stars 6 forks source link

Docmanager elements cannot be validated #113

Open ghost opened 8 years ago

ghost commented 8 years ago

Currently, docmanager writes out XML that cannot be validated since it essentially makes up tag names on-the-fly. The only thing standing between you and a typo in a property is when docmanager has a parameter of the same name.

I would propose to move to a model where there are fixed properties that can be validated using any kind of schema (e.g. dm:maintainer, dm:status, ...) and a property name that allows any kind of name (<property name="special-bob">alice</property>).

Ideally, DAPS could validate the dm: stuff too, but for a first step, at least docmanager itself should be able to validate it.