From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: psgml how to validate against schema Date: Wed, 04 May 2011 08:37:43 +0200 Message-ID: <4DC0F437.3050606@easy-emacs.de> References: <31433551.post@talk.nabble.com> <87sjt63ekx.fsf@dod.no> <4DB53B8A.4@easy-emacs.de> <87vcy216pi.fsf@dod.no> <4DB668CB.2040803@easy-emacs.de> <87fwoz1tbn.fsf@dod.no> <31533984.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304491089 8822 80.91.229.12 (4 May 2011 06:38:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 May 2011 06:38:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 04 08:38:05 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHVin-0001ih-7i for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2011 08:38:05 +0200 Original-Received: from localhost ([::1]:41719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHVim-0006FI-M1 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2011 02:38:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHVig-0006F2-P6 for help-gnu-emacs@gnu.org; Wed, 04 May 2011 02:37:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHVif-0001sl-Jo for help-gnu-emacs@gnu.org; Wed, 04 May 2011 02:37:58 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:50510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHVif-0001sQ-7Z for help-gnu-emacs@gnu.org; Wed, 04 May 2011 02:37:57 -0400 Original-Received: from [192.168.178.27] (brln-4d0c0093.pool.mediaWays.net [77.12.0.147]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Lj7Eo-1Pm23T1g7y-00dHIW; Wed, 04 May 2011 08:37:53 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 In-Reply-To: <31533984.post@talk.nabble.com> X-Provags-ID: V02:K0:s079SFWYZgkH4O8Nt20QYdTLc4/PyKDLktfOYmsUXra BGTaS62yAWFl04UP3RaxRel8xFZ3JL/6xIDvQjATeiDbNgLfU6 Ox621YpqXhlOBdyinxfakF43NTVCaiAwIWCAlu/nnyojqY7Jfs lwQYAuz3goKPakcQHcrXBai20PvjrabvguITdfowTWEY1TW93Q S2deCUPYpqKN8ZNfS4N3UcVqYgtY60iwfmqeX3xYhM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.8 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:80910 Archived-At: Am 03.05.2011 18:11, schrieb AngusC: > > > Steinar Bang wrote: >> >>>>>>> Andreas Röhler: >> >>> Am 25.04.2011 21:17, schrieb Steinar Bang: >> >>>> psgml DTD usage goes beyond validation. It uses the DTD information >>>> assist with inserting elements and edit attributes. >> >>> Sure. However, as far as a programm outside Emacs is called, just the >>> results sent back, that shouldn't matter here. >> >> The psgml usage of an external validator is just similar to the way >> emacs handles compilation errors. >> >> It can't use the external program to help with editing. For that it >> uses its built-in DTD parser (written in lisp). Editing and validating are different issues. Some sgml-forms will not work, when built upon use of dtd. Please report that as a bug then. Feel free to drop me a cc then. As dtd are optional, no command should fail completely without. >> >> It can only validate using a schema written using RELAX NG syntax. Emacs calls an external programm for that. Should be able to play the results back. AFAIS the work is basically done in line 1582 compile.el: (start-file-process-shell-command (downcase mode-name) outbuf command) All you need to do is selecting the correct validation-command, when starting. That >> was the problem. I could re-write the schema using RELAX NG .... but ran >> out of time on that one. >> >> >> >> >> >