From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Should nXML be included Date: Tue, 12 Jun 2007 12:21:15 +0100 Message-ID: <466E81AA.3030202@gnu.org> References: <466E7A93.3050705@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181647294 9162 80.91.229.12 (12 Jun 2007 11:21:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 11:21:34 +0000 (UTC) Cc: emacs-devel@gnu.org, Leo , "Eric M. Ludlam" To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 13:21:31 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hy4RD-000800-5U for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2007 13:21:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy4RC-0000U1-Kd for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2007 07:21:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy4R9-0000Ta-AU for emacs-devel@gnu.org; Tue, 12 Jun 2007 07:21:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy4R7-0000TK-Oa for emacs-devel@gnu.org; Tue, 12 Jun 2007 07:21:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy4R7-0000TH-J4 for emacs-devel@gnu.org; Tue, 12 Jun 2007 07:21:21 -0400 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hy4R6-00087h-TD for emacs-devel@gnu.org; Tue, 12 Jun 2007 07:21:21 -0400 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id C51575228F; Tue, 12 Jun 2007 12:21:19 +0100 (BST) User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: <466E7A93.3050705@gmail.com> X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72678 Archived-At: Lennart Borgman (gmail) wrote: > nXml is very good and I hope it will be included in Emacs. However > there are reasons to break it up. I think the parsing code somehow > should be broken up so that it can work for cases where the buffer is > divided into multiple major modes. I think what you really mean is that you want to use nxml-mode to edit non-xml files. Is that right? The problem I see with this is that the power of nxml-mode compared to psgml and sgml modes is that it deals with strict xml, and deals with it well. As soon as you start ripping out features to support non-XML documents, you're back to a general SGML mode and the compromises that brings. If you really want to create PHP in an XML file, you need to use CDATA blocks to tell the XML parser to ignore the invalid tags in that block.