From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Graham Hannington" Newsgroups: gmane.emacs.help Subject: On-the-fly validation of (X)HTML5 using the v.Nu REST API Date: Thu, 31 Mar 2016 13:37:06 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459402676 322 80.91.229.3 (31 Mar 2016 05:37:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 05:37:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 07:37:44 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1alVIb-0006LY-6T for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 07:37:41 +0200 Original-Received: from localhost ([::1]:58184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alVIa-0006R4-Jj for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 01:37:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alVIP-0006QY-5R for help-gnu-emacs@gnu.org; Thu, 31 Mar 2016 01:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alVIL-0006hx-T4 for help-gnu-emacs@gnu.org; Thu, 31 Mar 2016 01:37:29 -0400 Original-Received: from cluster-k.mailcontrol.com ([116.50.57.190]:53292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alVIL-0006gt-9b for help-gnu-emacs@gnu.org; Thu, 31 Mar 2016 01:37:25 -0400 Original-Received: from corax.fundi.priv (fundi.com.au [116.212.215.58] (may be forged)) by rly01k.srv.mailcontrol.com (MailControl) with ESMTP id u2V5b7sn041293 for ; Thu, 31 Mar 2016 06:37:08 +0100 In-Reply-To: X-KeepSent: 17945D92:2289F349-48257F87:001E3E92; name=$KeepSent; type=4 X-Mailer: IBM Notes Release 9.0 March 08, 2013 X-Disclaimed: 48679 X-Scanned-By: MailControl 44278.1202 (www.mailcontrol.com) on 10.75.0.111 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 116.50.57.190 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109692 Archived-At: I've been playing with the schemas from v.Nu in various tools and editors,= =20 including Emacs. The implementation-specific nature of the required=20 datatype library irks me; in some cases, it's proven to be a barrier, or=20 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.=20 You get the full benefit of v.Nu validation (including Schematron), not=20 just the RELAX NG schemas. And, as long as the HTTP interface is still=20 supported, it doesn't matter if the underlying validation technology used= =20 by v.Nu moves away from a RELAX NG schemas. Based on those experiments, I have developed and published a linter=20 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=20 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