all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 44874@debbugs.gnu.org
Subject: bug#44874: 27.1; nXML: error when setting the xhtml5.rnc schema
Date: Thu, 26 Nov 2020 16:02:33 +0100	[thread overview]
Message-ID: <20201126150233.GW29329@zira.vinc17.org> (raw)
In-Reply-To: <87a6v4xut6.fsf@gnus.org>

On 2020-11-26 11:43:17 +0100, Lars Ingebrigtsen wrote:
> Here's what I did:
> 
> cd /tmp
> git clone https://github.com/emacsmirror/html5-schema
> emacs -Q foo.xml
> M-x rng-set-schema-file RET /tmp/html5-schema/xhtml5.rnc RET
> 
> It asks me whether to save the location, and I answer "y", and I get no
> error.

OK, there seems to be a difference when doing that instead of using
the menu. BTW, after saving the location, if you quit and reopen
the file, you should now get the error message.

> Do you have a more precise recipe for reproducing the error?

If you don't get the error message, just make sure to validate
with "C-c C-v". This is what makes the error appear.

Note: After that, if I select Set Schema → Any Well-Formed XML
from the menu, I get "Using vacuous schema", which is fine.
But C-c C-v still gives the error "Incorrect schema. Unknown
datatype library http://whattf.org/datatype-draft"!

This is with Debian's GNU Emacs 27.1.

Note: it is possible to reproduce the issue from an empty XML file,
but after the schema is selected, one needs to type the beginning of
an element, e.g. "<r". Otherwise nXML knows that the file is invalid
without using the schema.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





  reply	other threads:[~2020-11-26 15:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 20:36 bug#44874: 27.1; nXML: error when setting the xhtml5.rnc schema Vincent Lefevre
2020-11-26 10:43 ` Lars Ingebrigtsen
2020-11-26 15:02   ` Vincent Lefevre [this message]
2020-11-27  8:09     ` Lars Ingebrigtsen
2020-11-27  8:59       ` Vincent Lefevre
2020-11-29 10:07         ` Lars Ingebrigtsen
2020-11-29 13:48           ` Vincent Lefevre
2020-11-29 12:42 ` Andy Moreton

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=20201126150233.GW29329@zira.vinc17.org \
    --to=vincent@vinc17.net \
    --cc=44874@debbugs.gnu.org \
    --cc=larsi@gnus.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 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.