From: "D. D. Brierton" <darren@dzr-web.com>
Subject: Re: psgml - support for XML namespaces and schemas?
Date: Fri, 08 Nov 2002 16:59:33 +0000 [thread overview]
Message-ID: <W3Sy9.4589$dz2.420280@stones> (raw)
In-Reply-To: 5l1y5wvy25.fsf@rum.cs.yale.edu
On Fri, 08 Nov 2002 16:14:10 +0000, Stefan Monnier <foo@acm.com> wrote:
> You can try out Emacs' built-in sgml-mode which is much less featureful than
> PSGML but doesn't require anything like a DTD. The version that comes with
> Emacs-21.2 is severely under-featured in many respects, but the version in
> the development code
> http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-mode.el?rev=HEAD
> supposedly works with Emacs-21.2 and provides XML support and indentation.
>
> I'd be interested to hear any comment about it,
Hi Stefan,
I downloaded the development code and tried it with 21.1. (I commented out
the section of my .emacs on PSGML.) I tried it with this docment:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
[
<!ENTITY content SYSTEM "content.xml">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<head>
<title>Emacs/PSGML Wrapper</title>
</head>
<body>
&content;
</body>
</html>
The syntac highlighting is nice (nicer than PSGML's). Indenting seems to work
nicely too. However, SGML -> Insert Attributes allows returns "Wrong context
for adding attribute" regardless of where the cursor is. If I attempt to tab
complete on SGML -> Insert Tag it gives ! and then a further tab gives me the
choice of:
Possible completions are:
![ !attlist
!doctype !element
!entity
I wasn't really expecting any tab completion (I assume no parsing or attempt
to read the DTD takes place), but why does it offer to insert things which
belong in the internal subset of the document type declaration regardless of
where I am in the document? Is that expected behaviour? Are there any
specific tests you'd like me to run before I re-enable PSGML?
Best, Darren
--
======================================================================
D. D. Brierton darren@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
======================================================================
next prev parent reply other threads:[~2002-11-08 16:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 0:17 psgml - support for XML namespaces and schemas? D. D. Brierton
2002-11-05 18:52 ` Jerry James
2002-11-08 10:47 ` Lennart Staflin
2002-11-08 11:49 ` D. D. Brierton
2002-11-08 13:19 ` Phillip Lord
2002-11-08 16:14 ` Stefan Monnier <foo@acm.com>
2002-11-08 16:35 ` D. D. Brierton
2002-11-08 17:10 ` Galen Boyer
2002-11-08 18:09 ` D. D. Brierton
2002-11-10 1:41 ` Galen Boyer
2002-11-10 2:28 ` D. D. Brierton
2002-11-10 3:43 ` Galen Boyer
2002-11-10 14:45 ` Kai Großjohann
2002-11-10 15:19 ` D. D. Brierton
2002-11-11 7:38 ` Kai Großjohann
2002-11-08 17:16 ` Stefan Monnier <foo@acm.com>
2002-11-08 17:53 ` D. D. Brierton
2002-11-08 16:59 ` D. D. Brierton [this message]
2002-11-12 3:51 ` Matt Armstrong
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='W3Sy9.4589$dz2.420280@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.