mhonarc-users

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
4.0//EN">

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:http://www.jclark.com/>.


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
comments). 
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:
<MIMEArgs>
text/plain; default=iso-8859-1
text/plain; nonfixed
text/plain; quote
text/plain; target=
</MIMEArgs>
to
<MIMEArgs>
text/plain:nonfixed
text/plain:quote
</MIMEArgs>

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

Each following line overrides the preceding one.  Try:

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

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

        --ewh

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

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