From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "D. D. Brierton" Newsgroups: gmane.emacs.help Subject: Re: PSGML: validate uses SGML declaration for XML Date: Wed, 30 Oct 2002 14:48:16 +0000 Organization: DZR Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <%SHv9.378$dz2.67345@stones> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035989528 12281 80.91.224.249 (30 Oct 2002 14:52:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 14:52:08 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186uCT-0003Bn-00 for ; Wed, 30 Oct 2002 15:52:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186uC6-0003jb-00; Wed, 30 Oct 2002 09:51:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!landlord!wards.POSTED!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help User-Agent: Pan/0.11.3 (Unix) X-Comment-To: "Jhair Tocancipa Triana" Original-Lines: 62 Original-NNTP-Posting-Host: 212.159.101.92 Original-X-Complaints-To: abuse@plus.net.uk Original-X-Trace: wards 1035989336 212.159.101.92 (Wed, 30 Oct 2002 14:48:56 GMT) Original-NNTP-Posting-Date: Wed, 30 Oct 2002 14:48:56 GMT Original-Xref: shelby.stanford.edu comp.emacs:75519 gnu.emacs.help:106556 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3106 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3106 On Wed, 30 Oct 2002 14:22:50 +0000, Jhair Tocancipa Triana wrote: >>>>>> " " == D D Brierton writes: > > > When I try and validate an XML document in PSGML mode with onsgmls > > sgml-declaration is used as the first argument instead of > > sgm-xml-declaration. I'm using Emacs 21.1.1 on Linux (Mandrake 8.2) > > and psgml 1.2.4. > > > Note that it correctly picks up the -wxml option but seem to use > > sgml-declaration instead of sgml-xml-declaration for the first > > argument. > > According to the documentation this is what is expected. Hmmm - then what is the purpose of the variable sgml-xml-declaration? or example, the sgml-validate-command is sensitive to whether the buffer is in xml-mode or sgml-mode; in the former it is onsgml -wxml -s %s %s whereas in the latter it is onsgml -s %s %s I had understood that the whole point of having separate sgml-declaration and sgml-xml-declaration was that the former would be substituted for the first %s in sgml-validate-command when in sgml-mode, and that the latter would be when in xml-mode. Am I misunderstanding that? > ,----[ C-h v sgml-validate-command ] > | sgml-validate-command's value is "onsgmls -s %s %s" > | > | Documentation: > | *The shell command to validate an SGML document. > | > | This is a `format' control string that by default should contain two `%s' > | conversion specifications: the first will be replaced by the value of > | `sgml-declaration' (or the empty string, if nil); the second will be > | replaced by the current buffer's file name (or the empty string, if nil). > `---- > > Defining the sgml-validate-command as a list and not a string is maybe what > you need. I'm not sure what you mean by that. Could you elaborate? I'm pretty clueless when it comes to list ... > Please, read the complete C-h v sgml-validate-command for > details. I have. Thanks for your help. Best, Darren -- ====================================================================== D. D. Brierton darren@dzr-web.com www.dzr-web.com Trying is the first step towards failure (Homer Simpson) ======================================================================