R
Rainer Gerhards
Hi All,
please forgive me if this question is too basic. I am an XML beginner (at
best ). For my open source project rsyslog [1] I am trying to find a
better configuration file format. One of the candidates is an XML-based
format [2]. If we take that route, I'd like to have the ability to at least
partially verify a configuration file.
However, in rsyslog nothing is static. Instead, functionality is loaded via
modules, which can be written by third parties. These modules have (and
need) the ability to add configuration parameters to the base set. So I
never know exactly which parameters are valid. This makes it somewhat hard
for me to define a DTD. I understand that probably the best option were to
have a mechanism that permits a plugin to modify the DTD before it is being
used. However, this sounds like a scary amount of work for which there is no
other justification.
So I wonder if it is possible to specify a DTD in a way that says "these are
the rules for the elements specified inside this DTD, but additional
containers may be added and are expected to be valid".
Any advise on this topic would be most welcome.
Thanks,
Rainer
[1] http://www.rsyslog.com
[2] http://lists.adiscon.net/pipermail/rsyslog/2010-June/003749.html
please forgive me if this question is too basic. I am an XML beginner (at
best ). For my open source project rsyslog [1] I am trying to find a
better configuration file format. One of the candidates is an XML-based
format [2]. If we take that route, I'd like to have the ability to at least
partially verify a configuration file.
However, in rsyslog nothing is static. Instead, functionality is loaded via
modules, which can be written by third parties. These modules have (and
need) the ability to add configuration parameters to the base set. So I
never know exactly which parameters are valid. This makes it somewhat hard
for me to define a DTD. I understand that probably the best option were to
have a mechanism that permits a plugin to modify the DTD before it is being
used. However, this sounds like a scary amount of work for which there is no
other justification.
So I wonder if it is possible to specify a DTD in a way that says "these are
the rules for the elements specified inside this DTD, but additional
containers may be added and are expected to be valid".
Any advise on this topic would be most welcome.
Thanks,
Rainer
[1] http://www.rsyslog.com
[2] http://lists.adiscon.net/pipermail/rsyslog/2010-June/003749.html