Re: Comments in markup?

Rainer Klute (klute@nads.de)
Tue, 30 Jul 1996 15:18:54 +0200


Message-Id: <199607301318.PAA17415@heike.nads.de>
To: galactus@stack.urc.tue.nl (Arnoud "Galactus" Engelfriet)
Cc: www-html@w3.org, "Rainer Klute" <klute@nads.de>
Subject: Re: Comments in markup? 
In-reply-to: Your message of Tue, 30 Jul 1996 12:36:57 +0200.
             <JXe/x4uYOJXZ089yn@stack.urc.tue.nl> 
Date: Tue, 30 Jul 1996 15:18:54 +0200
From: Rainer Klute <klute@nads.de>

>Ah, ok. But why does the WebTechs validator complain when I feed an
>HTML document containing an <!ENTITY> declaration (copied from the
>HTML 3.2 DTD, but with a different name to avoid duplicates) to it?
>Shouldn't it be possible to declare new entities in an HTML document?
>
>Or is there simply a restriction on *where* such declarations may be
>used? I find it very strange that you can put <!-- --> anywhere, but
>not <!ENTITY foo CDATA "&#62"> or something like that.

Exactly. That's the difference between the DTD and the document 
the DTD applies to. All you can do is to modify/extend the DTD 
within the DOCTYPE declaration.

Best regards
Rainer Klute

  Dipl.-Inform. Rainer Klute        NADS - Advertising on nets
  NADS GmbH
  Emil-Figge-Str. 80                Tel.: +49 231 9751230
D-44227 Dortmund                    Fax:  +49 231 9751238

            <http://www.nads.de/~klute/>