Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MdmvG-0007Gr-Fd for mharc-grub-devel@gnu.org; Wed, 19 Aug 2009 11:17:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdmvF-0007Gb-4Q for grub-devel@gnu.org; Wed, 19 Aug 2009 11:17:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdmvA-0007G3-Kx for grub-devel@gnu.org; Wed, 19 Aug 2009 11:17:56 -0400 Received: from [199.232.76.173] (port=59401 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdmvA-0007Fs-E2 for grub-devel@gnu.org; Wed, 19 Aug 2009 11:17:52 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:57992) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mdmv9-0003R3-5q for grub-devel@gnu.org; Wed, 19 Aug 2009 11:17:51 -0400 Received: by fxm26 with SMTP id 26so3532694fxm.42 for ; Wed, 19 Aug 2009 08:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=PTHZMgiE1UDW18BoO3WlBvFOoCZ+Z3cGy6va9dWXRWk=; b=ZnCQkEoBXvTIaF46gkfFp1lYgTZczFsV/94RshliKLREVITI22z0Ciq/Q2/syMStfj hQ/At8V/+OnkrejZifRshT/RI7Cxn6XTIVUK8gLW4MEqb6g5GOrbEPg+JZgewutuIeEI tWAfte7i9uZxVsSD9oIkRxIQc7gHsNJIJnCSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=pTHuggZKCcpYy8G/mc+W26lEcUVuKagFBS1WJ1AJIldo4tUZ2YQSv9thih3GT8YTUK PuHhzU2wWCA351w4YMsYQ6xMzT1ole7ftl/i3d+fyZ8c9Ms+jh+pCHlpwPAKrf+FBzHA vMjYlDI1uTP25jMsNOZZdDJiyoTttMwzGmz8I= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.241.28 with SMTP id o28mr4338405fgh.65.1250695068786; Wed, 19 Aug 2009 08:17:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Aug 2009 17:17:48 +0200 X-Google-Sender-Auth: e0e3a1b9bf273227 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 15:17:57 -0000 2009/8/19 Bean : > On Wed, Aug 19, 2009 at 10:30 PM, Vladimir 'phcoder' > Serbinenko wrote: >> 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 > > Hi, > > XML/CSS is only used for the represent of initial layout, you can > manipulate the tree after it's created. For example: > > # Add static content > load_xml menu.xml > # Add dynamic content > ... > > It's like using html for page layout, and javascript for interaction. > There is no conflict between the two. > > About the converter, it could cause more trouble than it solves. > XML/CSS can be written using plain text editor. while the converter > needs to be compiled or =C2=A0depend on other program, and it needs to be > rerun every time XML/CSS is changed, this could be quite troublesome. {} block syntax is also widely used and much easier to read and write by humans than XML+CSS. I do not see the reason for pushing XML/CSS everywhere. It's a compromise that does not quite work for neither of visual formatting, other media formatting, automatic parsing nor user readability. While you can add additional properties that make it specific enough for grub to know what to do (and drop things that grub would not use) it is no longer really XML/CSS and the familiarity could be even misleading. XML/CSS was created for the web but does not work even there because it is unclear, underspecified, and does not solve problems of media representation description that any decent menu system will want to solve. Given that using XML/CSS is contradicting your goal of extensibility. Thanks Michal