[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On-the-fly validation of (X)HTML5 using the v.Nu REST API
From: |
Graham Hannington |
Subject: |
On-the-fly validation of (X)HTML5 using the v.Nu REST API |
Date: |
Thu, 31 Mar 2016 13:37:06 +0800 |
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
- Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Graham Hannington, 2016/03/15
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Stefan Monnier, 2016/03/15
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Graham Hannington, 2016/03/16
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Stefan Monnier, 2016/03/16
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Graham Hannington, 2016/03/16
- Message not available
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Graham Hannington, 2016/03/17
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Stefan Monnier, 2016/03/17
- On-the-fly validation of (X)HTML5 using the v.Nu REST API,
Graham Hannington <=
- Re: On-the-fly validation of (X)HTML5 using the v.Nu REST API, Emanuel Berg, 2016/03/31
- Re: On-the-fly validation of (X)HTML5 using the v.Nu REST API, Stefan Monnier, 2016/03/31
- Re: On-the-fly validation of (X)HTML5 using the v.Nu REST API, Emanuel Berg, 2016/03/31
- Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI?, Graham Hannington, 2016/03/16