From owner-freebsd-arch Wed Feb 12 20:17:13 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1715B37B401 for ; Wed, 12 Feb 2003 20:17:12 -0800 (PST) Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA1A943FB1 for ; Wed, 12 Feb 2003 20:17:10 -0800 (PST) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net ([151.200.10.217]) by out001.verizon.net (InterMail vM.5.01.05.20 201-253-122-126-120-20021101) with ESMTP id <20030213041709.XOQ23484.out001.verizon.net@kokeb.ambesa.net>; Wed, 12 Feb 2003 22:17:09 -0600 Date: Wed, 12 Feb 2003 23:17:08 -0500 From: Mike Makonnen To: Garance A Drosihn Cc: wollman@lcs.mit.edu, wes@softweyr.com, arch@FreeBSD.ORG Subject: Re: syslog.conf syntax change (multiple program/host specifications) In-Reply-To: References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302120632.36583.wes@softweyr.com> <200302121411.h1CEBRSe025071@khavrinen.lcs.mit.edu> <200302121521.33506.wes@softweyr.com> <200302121615.h1CGFdGG025691@khavrinen.lcs.mit.edu> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from [151.200.10.217] at Wed, 12 Feb 2003 22:17:08 -0600 Message-Id: <20030213041709.XOQ23484.out001.verizon.net@kokeb.ambesa.net> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 12 Feb 2003 22:40:17 -0500 Garance A Drosihn wrote: > I bounce back and forth on XML. I can see that it's useful for > some things, but I don't think it is appropriate for config > files that a user is going to type in. And I certainly don't > want to *require* XML config files, because some of our (RPI) > config files are automatically generated and we assume the > same format of file across a number of unix platforms. Correct me if I'm wrong, but XML was never meant for humans to parse. "Human-readable" doesn't mean the user is supposed to go in and edit it. It means that if you should ever hit a worst case scenario, a human can always go in with a text editor and manipulate the data directly, not necessarily that it would be easy to do so. The primary goal of XML is to allow non-intelligent machines/software to understand the structure of a piece of data. > > I think that trying to XML-ize config files is something that > will take some time and effort to do right, and I suspect we > would be better off if that was put off for 6.0. I don't think > we want to drive our users nuts by constantly changing the > format of these files during a stable-branch, and I doubt we'll > have the perfect file format in time for 5.1-release. There's no way in hell we or any other BSD is going exclusively to XML for any particular configuration file. Some Linux distro might try it, but it would never work. The current file layouts are too entrenched. What would work; however, is XML as an intermediate data layout. The XML would sit between some program the user can use to make choices and the underlying text file. Take rc.conf for example. You could put all that data in XML format and some gui would let the user choose whatever he/she wanted and that would then be piped through an XSLT script that renders it in the current key=value layout. The data would be kept in defaults/rc.conf.xml and defaults/rc.conf would just become another generated file. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message