unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Flynn <peter@silmaril.ie>
Cc: psgml-devel@lists.sourceforge.net
Subject: Re: Re: Key sequence C-c C-f C-e uses invalid prefix characters
Date: Sun, 12 Jan 2003 14:29:49 +0000	[thread overview]
Message-ID: <3E217BDD.6030403@silmaril.ie> (raw)
In-Reply-To: 20030112040605.GA26128@gnu.org

Miles Bader wrote:
> On Wed, Dec 18, 2002 at 12:34:38AM +0000, Peter Flynn wrote:
> 
>>There is no point in even attempting to edit SGML without a DTD,
> 
> Of course there's a point.  It may not be as nice as when you know the real
> semantics (the results may be woefully wrong, if the grammar has lots of
> implicit end tags or something), but it's still useful.

Not really, in the sense that you can't *use* the file in any normal way
unless it's valid. If you know the DTD by heart and you have a great eye
for accuracy, sure, you can edit the file using vi or Notepad or Emacs
with just sgml-mode and you'll probably get it very close to correct.

And there is at least one very important set of occasions when editing
SGML without a validating enviromment is significantly important, as
has been pointed out elsewhere
(http://www.qucis.queensu.ca/achallc97/papers/p041.html).

The results will almost certainly be woefully wrong for any non-trivial
case, so apart from the above I'm not clear how it could be said to be
"useful" except as a learning experience.

>>as a DTD is *required* by ISO 8859 for all processing.
> 
> It doesn't matter what the `standard requires,' it matters what users find
> convenient.

This is meaningless. I can't supply a client with a broken document and
tell them that my author found it more "convenient" to edit without the
DTD and that the fact that they specified SGML according to a specific
DTD "doesn't matter". *I* didn't specify SGML conformance, *they* did,
and the fact that I may believe standards adherence to be wrong doesn't
change the fact that I have to supply what has been contracted for.

You might just as well say that even though the law says you must stop
at a red light, you find it more convenient to run the light.

In your view, if someone thinks that that "it doesn't matter" if the
ANSI C standard requires some aspect of C syntax that they don't like,
and if they find it more convenient to omit some declarations because
they get in the way, you believe these people should be at liberty to
do so and still claim they are writing C. I think not; and it won't work.

"The standard doesn't matter" means you can't be bothered your ass :-)
that's fine, it's your ass, and if you really don't like the SGML
standard (many don't), you are at complete liberty to go and make your
own system. You just can't call it SGML or XML.

(Many people, especially programmers, hate and despise SGML and XML very
deeply indeed because they are not programming languages, and because
they cannot be described using the shibboleths of standard Comp Sci Prog
Lang 101. We -- the SGML/XML community -- have failed to communicate and
educate about the difference between markup languages and programming,
and Computer Science has failed to adapt itself to include some of the
paradigms of markup.)

> Think `graceful degradation' -- do the best you can, instead of pedantically
> clinging to standards.

Graceful degradation is fine in the face of corrupted files, as I have
already explained. But when you are contracted to produce SGML there
is no point in producing nonsense-markup instead. A standard is a
standard, period. I didn't write them, but my customers require that I
adhere to them.

I'm not clear why you use the word "pedantic". Pedanticism is for
*off-standard* behaviour, like requiring adherence to optional features
as if they were compulsory. That is not the case under discussion here.

> So when you can't get the SGML DTD, 

Ah. Now *that's* a different problem entirely. If it never existed
(files created by people who didn't know what they were creating),
or the DTD is lost in the mists of time, then the simple solution
is to create one. There are programs to do this -- have been for
years -- and I even documented one in my 1998 book on SGML/XML tools,
called Fred (from OCLC). There are now many more for XML as well.

> just pretend the file's XML, and you'll get `sort of reasonable'
 > results.

Not with sgml-mode, and for the same reasons. But with an Emacs mode
that handles XML you can indeed edit the file as well-formed DTD-less
XML, and I have suggested this as a solution to malformed or broken
SGML on numerous occasions.

> It's not `correct,' but it's probably still useful, 

On the contrary, it will actually be perfectly "correct" (as
well-formed DTD-less XML) and it will probably be quite useful.

But it won't be what we have been calling SGML until you reference
or attach a DTD and validate it, if that's what you need.

 > and sounds pretty easy to me*...

It's all very easy. It just needs to be done right (the easy way)
instead of wrong (the hard way).

///Peter



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

  parent reply	other threads:[~2003-01-12 14:29 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3ofieak95.fsf@Janik.cz>
     [not found] ` <5x3czq4lzb.fsf@kfs2.cua.dk>
     [not found]   ` <m3664m4ie3.fsf@Janik.cz>
     [not found]     ` <200202271030.MAA22372@is.elta.co.il>
     [not found]       ` <m3g03mabog.fsf@Janik.cz>
     [not found]         ` <5x8z9e5ymx.fsf@kfs2.cua.dk>
     [not found]           ` <m3zo1u5d44.fsf@Janik.cz>
     [not found]             ` <5xpu2q2aof.fsf@kfs2.cua.dk>
     [not found]               ` <200203010011.g210BRc05072@rum.cs.yale.edu>
2002-12-10  7:05                 ` Key sequence C-c C-f C-e uses invalid prefix characters Karl Eichwalder
2002-12-10 13:20                   ` Stefan Monnier
2002-12-10 18:27                   ` Kevin Rodgers
2002-12-11 17:44                   ` Richard Stallman
2002-12-12  3:08                     ` Galen Boyer
2002-12-11 17:44                   ` Richard Stallman
2002-12-12  6:34                     ` Karl Eichwalder
2002-12-12  6:57                       ` Miles Bader
2002-12-12  7:53                         ` Karl Eichwalder
2002-12-12 20:32                           ` Kevin Rodgers
2002-12-13 18:22                       ` Lennart Staflin
2002-12-14 15:15                         ` Felix Gatzemeier
2002-12-15  7:28                           ` Karl Eichwalder
2002-12-16 16:42                             ` Richard Stallman
2002-12-15 23:39                         ` Richard Stallman
2002-12-16 22:07                           ` Peter Flynn
2002-12-16 22:48                             ` Stefan Monnier
2002-12-17 23:34                               ` Ron Ross
2003-01-11 20:10                                 ` [Psgml-devel] " Stefan Monnier
2003-01-12  0:53                                   ` Peter Flynn
2002-12-18  0:34                               ` Peter Flynn
2002-12-18  9:10                                 ` Kai Großjohann
2002-12-18 22:32                                   ` [Psgml-devel] " Peter Flynn
2002-12-19 22:52                                   ` Dave Love
2003-01-12  4:06                                 ` [Psgml-devel] " Miles Bader
2003-01-12 14:11                                   ` Robert J. Chassell
2003-01-12 14:29                                   ` Peter Flynn [this message]
2003-01-12 16:25                                     ` Robert J. Chassell
2003-01-12 23:25                                       ` Peter Flynn
2003-01-13 12:33                                         ` Robert J. Chassell
2003-01-14  6:02                                   ` Karl Eichwalder
2003-01-15 22:57                                     ` Peter Flynn
2003-01-15 23:32                                       ` Stefan Monnier
2003-01-16 21:00                                         ` [Psgml-devel] " Peter Flynn
2003-01-17 12:42                                           ` Robert J. Chassell
2002-12-19 22:50                             ` Dave Love
2002-12-31  8:00                               ` Adding PSGML to the Emacs CVS (Re: Key sequence C-c C-f C-e uses invalid prefix characters) Karl Eichwalder
2003-01-02 18:39                                 ` Richard Stallman
2003-01-11 19:53                                 ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=3E217BDD.6030403@silmaril.ie \
    --to=peter@silmaril.ie \
    --cc=psgml-devel@lists.sourceforge.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).