Re: Comments in markup?

>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/>

Received on Tuesday, 30 July 1996 09:20:42 UTC