Apache Commons already has an XML configuration system: http://jakarta.apache.org/commons/configuration/ . Could we simply do a port to Python and define the XSD?
Naadir Jeewa On Sat, 2005-03-12 at 18:32 -0600, Hasan Khalil wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On Mar 12, 2005, at 15:07, John Nilsson wrote: > > > On lÃr, 2005-03-12 at 14:24 -0600, Hasan Khalil wrote: > >> Sorry, I worded that all wrong. I meant to say that Apple's plist DTD > >> was built for this, and this kind of usage of XML has never led me > >> astray. Great way to store configuration data, IMO. Using XML for > >> configuration data also makes it easy to catch syntax errors in larger > >> configuration files, as well as makes it easier (again, IMO) to create > >> GUI front-ends for configuration file editing/creation. > > > > While on the topic, I felt the urge to revive a past idea of mine. > > > > If one were to write a DTD (or schema) that defines a schema for > > writing > > configurationfiles in xml. The common language would make it possible > > to > > even write generic configuration GUIs, such as webmin and friends, that > > could parse all kinds of configuration files without prior knowlege. > > > > That is: > > Generic DTD (Schema) -> Application Configuration Schema -> Application > > Configuration XML > > > > One could even provide language extension to be able to generate > > manpages from the same sourcefile. > > > > /John > > > Sounds very interesting, however large a task it may be... Have you > done any work on anything like this? > > - -- > Hasan Khalil > Ebuild/Porting Co-Lead > Gentoo for Mac OS X > > PGP Key: 0x707B8F18 on pgp.mit.edu > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.0 (Darwin) > > iD8DBQFCM4oazsotBnB7jxgRAi2oAKCY/Nf5I80VPOihzix5n63c9M/fQACeMabI > Y2MDYL1hZhaF7k7T1HUEwXw= > =R1T7 > -----END PGP SIGNATURE----- > > > -- > [email protected] mailing list > -- [email protected] mailing list
