[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should nXML be included

From: Jason Rumney
Subject: Re: Should nXML be included
Date: Tue, 12 Jun 2007 12:21:15 +0100
User-agent: Thunderbird (Windows/20070326)

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]