Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MdmB0-0003ZF-13 for mharc-grub-devel@gnu.org; Wed, 19 Aug 2009 10:30:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdmAy-0003WT-Ig for grub-devel@gnu.org; Wed, 19 Aug 2009 10:30:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdmAt-0003OO-Qf for grub-devel@gnu.org; Wed, 19 Aug 2009 10:30:08 -0400 Received: from [199.232.76.173] (port=34211 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdmAt-0003O5-L8 for grub-devel@gnu.org; Wed, 19 Aug 2009 10:30:03 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:46267) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdmAt-0001zF-9j for grub-devel@gnu.org; Wed, 19 Aug 2009 10:30:03 -0400 Received: by bwz22 with SMTP id 22so4029413bwz.42 for ; Wed, 19 Aug 2009 07:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EGBfAAc+FKKj4j07KJcGHfRU8SBgr+9Qi/HkwWsMPe0=; b=bMkw1tvbfeFfUyzuXtiEOCvzNOCZiubXrdoROsjo18gpCUR2W7rJEa9crabBOiTnQL zKkbIWF7C10iG7xmGhXLwQIDWjaUED/X14OIBqm6nMcqG0m+EeDg0q6NJejjIglVVba7 0UjJgdrWiFOfa0FzpwxbhKxjhuzGO10nKKE4U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FGHhZPheyiw26IPluGO4yVwCW421kEEWGxKkdZjSt2BzbfXFCyOZVbd23fdh9geHhK qzj94vU5yQonmjHbO7/j5uRsMXkh1F1qQVJJ4AROSohhwp7Q07Ki0l4cPuuOJ81uneY/ ZhNsEloGd5g7EqVmUTCyzhHOp1byT7kIFge88= MIME-Version: 1.0 Received: by 10.204.156.3 with SMTP id u3mr5014843bkw.179.1250692202189; Wed, 19 Aug 2009 07:30:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Aug 2009 16:30:00 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC] Redesign of the menu system X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2009 14:30:08 -0000 On Wed, Aug 19, 2009 at 4:22 PM, Bean wrote: > Hi, > > Some clarification about the XML/CSS format: > > First of all, the internal representation of component is tree-like > structure, which is quite natural to XML, we can create the tree while > parsing. Besides, we don't need to implement the full specification of > XML/CSS, just a subset that works for us. > > And as stated previously, XML/CSS is not the only interface. It's > primarily used for normal user. As XML/CSS is wildly used, user can > open the configuration file and get a general idea of what's it about. > But for advanced users, he may decide to configure the menu in > grub.cfg, in this case, XML is definitely not suitable as it conflicts > with existing syntax, and the {} syntax would be fine. > The problem of XML/CSS is that they can't be modified on the fly by commands from shell. You need to have an OS booted to do that. Because of that I see no benefit from supporting XM in grub itself. If you want to allow menu interface creation with XML+CSS which can be good thing you can create a converter running in userspace and this way you can reuse existing XML and CSS libraries. Then in grub the resulting format can be loaded using "source" command > -- > Bean > > gitgrub home: http://github.com/grub/grub/ > my fork page: http://github.com/bean123/grub/ > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git