From owner-freebsd-current@FreeBSD.ORG Tue Apr 13 23:29:19 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B1E416A4CE for ; Tue, 13 Apr 2004 23:29:19 -0700 (PDT) Received: from smtp.web.de (smtp07.web.de [217.72.192.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id A18A843D4C for ; Tue, 13 Apr 2004 23:29:18 -0700 (PDT) (envelope-from nakal@web.de) Received: from [80.135.125.52] (helo=[80.135.125.52]) by smtp.web.de with esmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.101 #91) id 1BDdtS-000696-00; Wed, 14 Apr 2004 08:29:06 +0200 From: Martin To: Andrew Milton In-Reply-To: <20040414050517.GA59412@camelot.theinternet.com.au> References: <20040413121925.GB29867@voodoo.oberon.net> <407C4035.8020609@ciam.ru> <1081896823.772.58.camel@klotz.local> <20040414050517.GA59412@camelot.theinternet.com.au> Content-Type: text/plain Message-Id: <1081924142.1359.15.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 14 Apr 2004 08:29:03 +0200 Content-Transfer-Encoding: 7bit Sender: nakal@web.de cc: FreeBSD Current Subject: Re: Second "RFC" on pkg-data idea for ports X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 06:29:19 -0000 On Wed, 2004-04-14 at 07:05, Andrew Milton wrote: > The problem then isn't that it's not XML, it's having something well > defined. Making it bad XML won't make it any better. > > XML is not great as a registry/database format. It turns out to be ugly to > parse with code and ugly to edit by humans, and then humans try to to make it > into something else that it isn't. Plus it's so easy to do a bad job in XML. That's true. We should not argue about basic matters. I'm hoping that if XML is used, it's used correctly. Call me optimistic. > Well this doesn't make sense. If you're using XML is SHOULD be validated when > it's written, because it's probably going to need to conform to a DTD or an > XML-schema. This shouldn't only be detected on read. If you are simply using "fprintf"s to output the XML text and not too many "if"s, you can simply validate one single created instance. Of course the content should be in valid encoding, too. > Simple is always better. You can build a lot of things with simple building > blocks. Small comment about "simple": I like simple, too. But I would like to warn everyone: if you make things too simple you will (as usually) end up in using US-ASCII files (property->value) and kick out all people from other nations. If you really are serious about doing work for broad masses (I would really like to see "FreeBSD for everyone") then you have to do it right. I can tell you for sure that I know many people who will not touch a system which is not in their native language. This is usually underestimated. So, make it simple, but think about consequences! Martin