unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: Daniel Colascione <dan.colascione@gmail.com>,
	Emacs Devel <emacs-devel@gnu.org>
Subject: Re: nxml-mode parser and multi major modes
Date: Wed, 28 May 2008 08:21:05 +0200	[thread overview]
Message-ID: <483CF9D1.4090109@gmail.com> (raw)
In-Reply-To: <483CA210.4060303@gnu.org>

Jason Rumney wrote:
> 
>> Ok, here comes the diff.
> 
> It seems that the point of this diff is to make the validation code of 
> nxml-mode ignore certain chunks of invalid XML within the buffer, is 
> that right?

Yes.

> If so, then XML already has a mechanism for telling parsers not to parse 
> a block of text: <![CDATA[ ... ]]>, though you may need to customize the 
> face that is used to display the contents to avoid conflict with the 
> other mode that you intend to use on its contents.

It is not supposed to be used in that context.

Think PHP, Jsp, Smarty, EmbPerl or any other xhtml template language. 
The files are simply not valid XML, but parts of them can still be 
parsed by the nxml-mode parser. This allows both error checking and 
XHTML completion.




      reply	other threads:[~2008-05-28  6:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27 22:11 nxml-mode parser and multi major modes Lennart Borgman (gmail)
2008-05-27 22:21 ` Jason Rumney
2008-05-27 23:38   ` Lennart Borgman (gmail)
2008-05-28  0:06     ` Jason Rumney
2008-05-28  6:21       ` Lennart Borgman (gmail) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=483CF9D1.4090109@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=dan.colascione@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).