From: "Graham Hannington" <graham_hannington@fundi.com.au>
To: help-gnu-emacs@gnu.org
Subject: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?
Date: Tue, 15 Mar 2016 14:03:14 +0800 [thread overview]
Message-ID: <OF610279D9.A7A8BDC6-ON48257F77.001D3013-48257F77.0021D1E9@LocalDomain> (raw)
I am using Emacs nXML mode to validate XHTML5 documents with the Nu Html
Checker (v.Nu) schemas.
Sincere thanks to all who made this possible, including the developers of:
- Emacs (and Chris Zheng, for providing an Emacs for Windows binary at
http://emacsbinw64.sourceforge.net/)
- nXML
- The GitHub repo hober/html5-el, which provides the datatype library
required by the v.Nu schemas in a Lisp-based format usable by nXML (rather
than, say, a Java-based library usable by Jing)
I'm grateful and happy. But I could be even happier, hence this email.
Rather than using a snapshot of the v.Nu schemas downloaded to my local
file system, I'd like to refer to the "living" v.Nu schemas in the GitHub
repo via HTTP.
I can already do that in other validating XML editors that use Jing
(again, thanks to Mr Clark), such as jEdit. I'd like to do that in Emacs,
too.
For example, in emacs\share\emacs\24.5\etc\schema\schemas.xml (those
backslashes betray the fact I'm using Emacs on Windows :-) ), I want to
specify:
<uri pattern="*.xhtml" typeId="XHTML5"/>
<typeId id="XHTML5" uri="
http://unsoup.github.io/validator/schema/xhtml5-all.rnc"/>
For background on why I'm referring to an "unsoup" URL rather than
directly to the v.Nu repo, see:
https://github.com/unsoup/validator
(I must update that readme to mention raw.githubusercontent.com as an
alternative to github.io URLs.)
However, that "http://..." uri attribute value causes the following error
in Emacs:
> Invalid URI: "URI `http:/// ... ' does not use the `file:' scheme"
so, for now, I'm pointing to a snapshot of the v.Nu schemas on my local
file system.
That's okay - it's working, which is great - but I'd prefer to point to
the "live" schemas via HTTP.
I'd appreciate advice on adding support for HTTP URLs to that uri
attribute value (and also include directives in the .rnc files) or, better
still, an update to nXML that includes this support (I'm not a Lisp
programmer, but I could learn).
Regards,
Graham Hannington
Fundi Software Pty Ltd 2016 ABN 89 009 120 290
This message has been scanned for malware by Websense. www.websense.com
next reply other threads:[~2016-03-15 6:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 6:03 Graham Hannington [this message]
2016-03-15 14:40 ` Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI? Stefan Monnier
2016-03-16 8:45 ` Graham Hannington
2016-03-16 12:27 ` Stefan Monnier
2016-03-16 14:09 ` Graham Hannington
[not found] ` <jwv7fh2z5eb.fsf-monnier+emacs@gnu.org>
2016-03-17 9:37 ` Graham Hannington
2016-03-17 12:38 ` Stefan Monnier
2016-03-31 5:37 ` On-the-fly validation of (X)HTML5 using the v.Nu REST API Graham Hannington
2016-03-31 17:54 ` Emanuel Berg
2016-03-31 18:20 ` Stefan Monnier
2016-03-31 18:40 ` Emanuel Berg
2016-04-01 9:22 ` Graham Hannington
2016-04-01 13:10 ` Stefan Monnier
2016-04-01 19:13 ` Emanuel Berg
2016-04-01 4:50 ` Graham Hannington
2016-04-01 19:08 ` Emanuel Berg
2016-03-16 14:47 ` Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI? Graham Hannington
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=OF610279D9.A7A8BDC6-ON48257F77.001D3013-48257F77.0021D1E9@LocalDomain \
--to=graham_hannington@fundi.com.au \
--cc=help-gnu-emacs@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.
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).