unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Graham Hannington" <graham_hannington@fundi.com.au>
To: help-gnu-emacs@gnu.org
Subject: On-the-fly validation of (X)HTML5 using the v.Nu REST API
Date: Thu, 31 Mar 2016 13:37:06 +0800	[thread overview]
Message-ID: <OF17945D92.2289F349-ON48257F87.001E3E92-48257F87.001F6D8C@LocalDomain> (raw)
In-Reply-To: <jwv1t79e0ur.fsf-monnier+emacs@gnu.org>

I've been playing with the schemas from v.Nu in various tools and editors, 
including Emacs. The implementation-specific nature of the required 
datatype library irks me; in some cases, it's proven to be a barrier, or 
at least a nuisance.

I decided to experiment with the v.Nu REST API (HTTP interface):

https://github.com/validator/validator/wiki/Service:-Input:-POST-body

No need for an external datatype library, because it's bound into v.Nu. 
You get the full benefit of v.Nu validation (including Schematron), not 
just the RELAX NG schemas. And, as long as the HTTP interface is still 
supported, it doesn't matter if the underlying validation technology used 
by v.Nu moves away from a RELAX NG schemas.

Based on those experiments, I have developed and published a linter 
provider for the Atom editor that uses the v.Nu REST API:

https://atom.io/packages/linter-vnu

If you're interested in editing (X)HTML, watch the animated GIF on that 
page showing on-the-fly validation.

The same technique could be used for Emacs. Just a thought.

Graham Hannington

Fundi Software Pty Ltd  2016  ABN 89 009 120 290


This message has been scanned for malware by Websense. www.websense.com



  reply	other threads:[~2016-03-31  5:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15  6:03 Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI? Graham Hannington
2016-03-15 14:40 ` 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               ` Graham Hannington [this message]
2016-03-31 17:54                 ` On-the-fly validation of (X)HTML5 using the v.Nu REST API 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=OF17945D92.2289F349-ON48257F87.001E3E92-48257F87.001F6D8C@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).