From: "Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Basic question on choosing nxml-mode schema
Date: Thu, 10 Nov 2016 14:37:47 +0000 (UTC) [thread overview]
Message-ID: <1772356535.1551835.1478788667810@mail.yahoo.com> (raw)
In-Reply-To: <jwvzil8o2bb.fsf-monnier+gmane.emacs.help@gnu.org>
----- Original Message -----
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> To: help-gnu-emacs@gnu.org
> Sent: Wednesday, November 9, 2016 2:58 PM
> Subject: Re: Basic question on choosing nxml-mode schema
>
>> However, the xhtml schema bundled with nxml is that of XHTML 1.0, not
>> XHTML5. It does not know about <section> or <nav> or any other
>> newfangled elements of HTML5.
>
>> You’d need to either clone and extend the XHTML 1.0 schema to make it
>> accept XHTML5 on your own, or obtain schema files from somebody who
>> already walked this path. This thread[2] of half a year ago and this
>> repository[3] over at Github might help you in that.
>
> The `html5-schema` package in GNU ELPA is supposed to do that.
> It's still limited to "html" (whereas HTML5 really includes SVG
> and
> a few other XML sub-schemas), but it might be good enough for him.
Her ;-)
I'm still not sure how all this works, but this seems mostly better for some
things.
Using this schema with a file beginning:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
gives me only two problems: this rejects 'lang="EN"' with "Attribute not allowed";
and it rejects <style> as "Element not allowed in this context", even when appearing
within a <body> area.
If I try to use the original,
<!doctype html>
<html lang="en">
then it rejects "doctype" with "Unknown markup declaration", the "lang" as above,
"Referenced entity has not been defined" for – and related, and <style> as above.
I do control the HTML files, and I don't mind using different header info, but if the
basic form is "supposed" to work, I'd sort of like it to work. I'd also like <script>
to work....
Thank you all.
Jen
next prev parent reply other threads:[~2016-11-10 14:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1447994335.988177.1478636797036.ref@mail.yahoo.com>
2016-11-08 20:26 ` Basic question on choosing nxml-mode schema Dr. Jennifer Nussbaum
2016-11-09 9:06 ` tomas
2016-11-09 9:38 ` Yuri Khan
2016-11-09 19:58 ` Stefan Monnier
2016-11-10 14:37 ` Dr. Jennifer Nussbaum [this message]
2016-11-10 17:05 ` Stefan Monnier
2016-11-09 21:02 ` tomas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1772356535.1551835.1478788667810@mail.yahoo.com \
--to=bg271828@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.