nxhtml team mailing list archive
-
nxhtml team
-
Mailing list archive
-
Message #00213
Re: [Question #110173]: isn't xhtml dead on arrival?
Question #110173 on nXhtml changed:
https://answers.launchpad.net/nxhtml/+question/110173
Status: Open => Answered
lborgman proposed the following answer:
Hi Perry,
Thanks for bringing the question of html5 here. Some notes first:
- The page we are reading here has "Content-Type: text/html;charset=utf-8" in the response headers.
- The format of it is XHTML 1.0 Transitional.
So XHTML is used, at least here (but this page has some errors). I do
not know if Content-Type is correct, but I suppose it is.
You said you toyed with xhtml mode. I guess you mean nxhtml-mode (which
comes with nXhtml)?
Now to html5. I know very little, but there seem to be two versions
html5 and xhtml5:
http://html5doctor.com/html-5-xml-xhtml-5/
If that is correct then there will must be a DTD somewhere for xhtml5.
This could then be used immediately in nxml-mode, but the DTD has to be
translated to rng-files first. With nxml-mode you will have completion
of tags and some attributes.
nxhtml-mode is based on nxml-mode but gives a bit more help with
completion than nxml-mode. So I will probably write a new major mode
nxhtml5-mode for xhtml5.
However html5 does not seem to be based on a DTD so that can't be handled by nxml-mode (or some mode derived from it) since nxml-mode needs a DTD (in the form of rng files).
html can be edited with html-mode which comes with Emacs itself. I do
not know if html5 can be edited conventiently with html-mode. Have you
tried it? This might be something we have to take up on Emacs developers
mailing list.
html-mode does not give you context sensitive completion like nxml-mode
does. Writing such support can be done using Wisent in CEDET which is
now in the just released 23.2 part of Emacs. No one has however done it
yet. Such support would be very welcome both for html4 and html5.
--
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.