From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Kinnucan Newsgroups: gmane.emacs.help Subject: Re: PSGML: validate uses SGML declaration for XML Date: 30 Oct 2002 10:54:32 -0500 Organization: The MathWorks, Inc., Natick, MA 01760 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=us-ascii X-Trace: main.gmane.org 1035993554 28710 80.91.224.249 (30 Oct 2002 15:59:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 15:59:14 +0000 (UTC) Cc: darren@dzr-web.com 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 186vFK-0007S6-00 for ; Wed, 30 Oct 2002 16:59:06 +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 186vCi-0001LB-00; Wed, 30 Oct 2002 10:56:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!news.mathworks.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 80 Original-NNTP-Posting-Host: kinnucanp.dhcp.mathworks.com User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 Original-Xref: shelby.stanford.edu comp.emacs:75521 gnu.emacs.help:106562 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:3112 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3112 Have you looked at my XML Authoring Environment for Emacs at http://xae.sunsite.dk? It is intended to ease the pain for newcomers of using Emacs to create and transform XML documents. It includes psgml, the Docbook DTD, and saxon and a menu of commands for transforming documents, including a command that transforms and displays Docbook documents in the default Emacs HTML browser (Internet Explorer on my system). - Paul "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. > > The following variables are set in my .emacs: > > (setq sgml-declaration "/usr/share/sgml/docbook/sgml-dtd-3.1/docbook.dcl") > (setq sgml-xml-declaration "/usr/share/sgml/openjade/pubtext/xml.dcl") > > The value of sgml-validate-command is unchanged from the default: > > sgml-validate-command's value is > "nsgmls -wxml -s %s %s" > Local in buffer test.xml; global value is "nsgmls -s %s %s" > > Say I have a buffer like so: > > ====================================================================== > > > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > > > Test > > >

This is a Test

> > > > > ====================================================================== > > The mode line indicates that I am indeed in xml-mode, and > > M-x describe-variable sgml-xml-p > > returns > > sgml-xml-p's value is t > Local in buffer top.xml; global value is nil > > However, whenever I try and valdate my document the command I am prompted to > accept is: > > nsgmls -wxml -s /usr/share/sgml/docbook/sgml-dtd-3.1/docbook.dcl test.xml > > Note that it correctly picks up the -wxml option but seem to use > sgml-declaration instead of sgml-xml-declaration for the first argument. > > I have been trying to get PSGMl set up for days now, and I'm beginning to lose > focus. Am I missing something totally stupid? > > Best, Darren > > -- > ====================================================================== > D. D. Brierton darren@dzr-web.com www.dzr-web.com > Trying is the first step towards failure (Homer Simpson) > ======================================================================