all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PSGML: validate uses SGML declaration for XML
@ 2002-10-30  2:55 D. D. Brierton
  2002-10-30 14:22 ` Jhair Tocancipa Triana
  2002-10-30 15:54 ` Paul Kinnucan
  0 siblings, 2 replies; 6+ messages in thread
From: D. D. Brierton @ 2002-10-30  2:55 UTC (permalink / raw)


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:

======================================================================

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
  <head>
    <title>Test</title>
  </head>
  <body>
    <p>This is a Test</p>
  </body>
</html>
<!--
Local Variables:
mode: xml
sgml-default-dtd-file:"~/lib/DTD/xhtml11/xhtml11.ced"
End:
-->

======================================================================

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)
======================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-10-31  7:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-30  2:55 PSGML: validate uses SGML declaration for XML D. D. Brierton
2002-10-30 14:22 ` Jhair Tocancipa Triana
2002-10-30 14:48   ` D. D. Brierton
2002-10-30 15:54 ` Paul Kinnucan
2002-10-30 16:27   ` D. D. Brierton
2002-10-31  7:59     ` Charles Muller

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.