Re: DOCTYPE, TARGET, and some MIMEArgs

1998-07-30 00:49:00
On July 28, 1998 at 18:40, Kjetil Kjernsmo wrote:

I have finally gotten about to start using MHonarc, and have set up a
rather long RC-file, with lots of stuff, I try lots of different
HTML-stuff, and I'll be writing a stylesheet eventually.

Anyway, I want to use the HTML 4.0 Strict DTD, and I have included the
appropriate <IdxPgBegin><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML

The problem is that W3C validator won't validate the messages, because
of the SGML-comments at the top. Curiously, it does validate the
maillist.html and threads.html files. Can it be that there is a limit
for how many lines you can have? Can I do anything about it? It may
perhaps be a good idea to have a resource for the DOCTYPE, and make sure
it is always the first line.

The W3C validator is incorrect.  Comment declarations are legal before
the DOCTYPE declaration.  As a sanity check, I verified with nsgmls.
If you want to make sure the files conform to a specific DTD, I
recommend using nsgmls (part of the SP package) to do your validation.
SP implements a robust SGML parser, and pre-compiled versions are
avilable for various platforms (if you do not want to compile
it yourseld).  Check out <URL:>.

Also, as far as I recall, the TARGET attribute only appears in the
Frameset DTD, so the validator complains about it (after I removed the
I tried to set text/plain; target=, but that didn't work (my other
problem), but I don't know if that would have removed the attribute...?
Anyway, as long as no frames are in use, I think it would be better not
to include the attribute at all.

TARGET is set to "_top" by default.  This was done to make sure URLs
converted to links would always show up in full window mode of the
browser to bypass any frames that were active.  I guess I can make
default behavior not set the TARGET attribute if not set via MIMEARGS.
However, why not use the DTD with the frame element declarations?

My other problem is that I can't get the built-in text/plain filter to
work as I want. I have tried most things from:
text/plain; default=iso-8859-1
text/plain; nonfixed
text/plain; quote
text/plain; target=

In most cases, it seems like the italization works, but not the rest of

Each following line overrides the preceding one.  Try:

text/plain; default=iso-8859-1 nonfixed quote

The "target=" will not do what you want.  Also, the default option
is not needed since iso-8859-1 is already the default.


             Earl Hood              | University of California: Irvine
      ehood(_at_)medusa(_dot_)acs(_dot_)uci(_dot_)edu      |      Electronic 
Loiterer | Dabbler of SGML/WWW/Perl/MIME

<Prev in Thread] Current Thread [Next in Thread>