W3C home > Mailing lists > Public > public-html-xml@w3.org > January 2011

Re: Use cases

From: James Clark <jjc@jclark.com>
Date: Wed, 5 Jan 2011 14:42:32 +0700
Message-ID: <AANLkTikPz7CKQuLRG8Si4FezJNsOezQHzi9LUVd1dt=C@mail.gmail.com>
To: "Edward O'Connor" <hober0@gmail.com>
Cc: public-html-xml@w3.org
On Wed, Jan 5, 2011 at 9:16 AM, Edward O'Connor <hober0@gmail.com> wrote:

> > 1. One use case that is important to me is using a schema-driven XML
> > authoring tool to create HTML5 in the HTML syntax.  In particular, I
> would
> > like to be able to use a tool like nxml-mode, which is schema-aware but
> > exposes the syntax of the document, rather than working purely on a tree.
> I'm working on implementing the HTML5 parser in Emacs Lisp. I've got
> the tokenizer implemented and passing around half of the html5lib
> tokenizer tests. Its interface will be similar to your xmltok.el, so
> eventually it'll plug into nxml-mode (or, if nxml-mode proves to have
> to many XMLisms baked in, a similar mode).
xmltok.el is only half the story.  The trickier bit is the next layer which
provides incremental parsing and error recovery (documents under
construction benefit from special error handling to deal with eg unclosed
comments). See nxml-rap.el.  Note that although a version of nxml-mode that
works with HTML5 would be a useful thing to have, it would not completely
satisfy my use case: I want to create documents that are both HTML5 and XML.

Received on Wednesday, 5 January 2011 07:46:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:27 UTC