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: Re: Using Emacs nXML mode to validate XHTML5 using the v.Nu schemas: support for HTTP-based schema URI? Date: Wed, 16 Mar 2016 22:09:10 +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 1458140694 21128 80.91.229.3 (16 Mar 2016 15:04:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2016 15:04:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 16:04:40 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 1agD03-000521-77 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 16:04:39 +0100 Original-Received: from localhost ([::1]:56876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agD02-000569-Lz for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 11:04:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agCzi-00051N-MU for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:04:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agCze-0002Bu-8Z for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:04:18 -0400 Original-Received: from cluster-m.mailcontrol.com ([116.50.58.190]:52488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agCzd-0002BX-NI for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:04:14 -0400 Original-Received: from corax.fundi.priv (fundi.com.au [116.212.215.58] (may be forged)) by rly11m.srv.mailcontrol.com (MailControl) with ESMTP id u2GE99eF013771; Wed, 16 Mar 2016 14:09:09 GMT In-Reply-To: X-KeepSent: 9F145584:2906F048-48257F78:0049AFF9; name=$KeepSent; type=4 X-Mailer: IBM Notes Release 9.0 March 08, 2013 X-Disclaimed: 51483 X-Scanned-By: MailControl 44278.1202 (www.mailcontrol.com) on 10.77.0.121 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 116.50.58.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:109599 Archived-At: > Do you know how/when/where those missing files get generated? How: yes. By the v.Nu Python build script, build.py: https://github.com/validator/validator/blob/master/build/build.py When: no. At least, not precisely. Imprecisely, the bleeding obvious ;-): whenever a= =20 v.Nu developer, or anyone else who clones the repo, decides to build v.Nu= =20 from source. Certainly, whenever the v.Nu developers decide it's time for a new=20 release: https://github.com/validator/validator/releases If that's not what you meant by "when": for details on when, during the=20 build process, the missing files are generated, see the source of=20 build.py. Where: that depends on what you mean by "where", and probably not for the= =20 facetious reasons you're imagining ;-). All of the schema files are delivered in the .jar (or .war; but I've been= =20 using the .jar) in one "flat" directory (with no subdirectories): nu/validator/localentities/files/ That directory contains a file named entitymap. Each line of that file=20 maps a file name in that directory to a URI. Here is an example line for a= =20 schema file: http://s.validator.nu/html5/block.rnc schema_html5_block_rnc The extension-less file names are an underscore-delimited concatenation of= =20 the directory path, file name, and extension of the corresponding source=20 file from the repo (or a similar-looking confection, for files that are=20 created during the build). So the answer to "where" has more to do with those internal v.Nu schema=20 URIs than the actual "physical" location (directory path) of the files in= =20 the generated .jar. In terms of those URIs, the missing files are generated in the html5=20 directory. One file, rdf.rnc is moved from the repo .drivers directory to the "build= =20 only" rdf directory. There are other differences, too. For more details, you can perform your own comparison by following the=20 steps in the readme at: https://github.com/unsoup/validator#comparing-the-source-and-distributed-sc= hemas Or ask me, and I'll send you a detailed report from, say, WinMerge (what I= =20 typically use), or your free diff tool of choice. Graham Fundi Software Pty Ltd 2016 ABN 89 009 120 290 This message has been scanned for malware by Websense. www.websense.com