help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSGML: validate uses SGML declaration for XML


From: D. D. Brierton
Subject: PSGML: validate uses SGML declaration for XML
Date: Wed, 30 Oct 2002 02:55:55 +0000
User-agent: Pan/0.11.3 (Unix)

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            address@hidden           www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
======================================================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]