all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "D. D. Brierton" <darren@dzr-web.com>
Subject: PSGML: validate uses SGML declaration for XML
Date: Wed, 30 Oct 2002 02:55:55 +0000	[thread overview]
Message-ID: <%SHv9.378$dz2.67345@stones> (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)
======================================================================

             reply	other threads:[~2002-10-30  2:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-30  2:55 D. D. Brierton [this message]
2002-10-30 14:22 ` PSGML: validate uses SGML declaration for XML 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='%SHv9.378$dz2.67345@stones' \
    --to=darren@dzr-web.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.