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: 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 Message-ID: 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 1458051418 27430 80.91.229.3 (15 Mar 2016 14:16:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2016 14:16:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 15 15:16:43 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 1afpm7-0007aW-BD for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Mar 2016 15:16:43 +0100 Original-Received: from localhost ([::1]:48464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afpm6-0002kY-JN for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Mar 2016 10:16:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afiss-00010M-HG for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 02:55:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afisp-0003JB-9k for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 02:55:14 -0400 Original-Received: from cluster-k.mailcontrol.com ([116.50.57.190]:47140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afiso-0003Ef-Ns for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 02:55:11 -0400 Original-Received: from corax.fundi.priv (fundi.com.au [116.212.215.58] (may be forged)) by rly03k.srv.mailcontrol.com (MailControl) with ESMTP id u2F63Asj011118 for ; Tue, 15 Mar 2016 06:03:11 GMT X-KeepSent: 610279D9:A7A8BDC6-48257F77:001D3013; name=$KeepSent; type=4 X-Mailer: IBM Notes Release 9.0 March 08, 2013 X-Disclaimed: 55259 X-Scanned-By: MailControl 44278.1202 (www.mailcontrol.com) on 10.75.0.113 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 116.50.57.190 X-Mailman-Approved-At: Tue, 15 Mar 2016 10:16:31 -0400 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:109584 Archived-At: I am using Emacs nXML mode to validate XHTML5 documents with the Nu Html=20 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=20 http://emacsbinw64.sourceforge.net/) - nXML - The GitHub repo hober/html5-el, which provides the datatype library=20 required by the v.Nu schemas in a Lisp-based format usable by nXML (rather= =20 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=20 file system, I'd like to refer to the "living" v.Nu schemas in the GitHub= =20 repo via HTTP. I can already do that in other validating XML editors that use Jing=20 (again, thanks to Mr Clark), such as jEdit. I'd like to do that in Emacs,= =20 too. For example, in emacs\share\emacs\24.5\etc\schema\schemas.xml (those=20 backslashes betray the fact I'm using Emacs on Windows :-) ), I want to=20 specify: For background on why I'm referring to an "unsoup" URL rather than=20 directly to the v.Nu repo, see: https://github.com/unsoup/validator (I must update that readme to mention raw.githubusercontent.com as an=20 alternative to github.io URLs.) However, that "http://..." uri attribute value causes the following error= =20 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=20 file system. That's okay - it's working, which is great - but I'd prefer to point to=20 the "live" schemas via HTTP. I'd appreciate advice on adding support for HTTP URLs to that uri=20 attribute value (and also include directives in the .rnc files) or, better= =20 still, an update to nXML that includes this support (I'm not a Lisp=20 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