Re: progress on HTML 2.0 reconstruction

Christophe ESPERT (espert@cln46ib.der.edf.fr)
Wed, 29 Mar 95 07:09:57 EST

In message <199503290936.AA031499804@freya.let.rug.nl> 29 Mar 95 04:37:37, bert@let.rug.nl wrote:

> Example: the following document should get type "text/sgml", despite
> the public identifier:
>
> -----------------------------------------------
> <!doctype html public "-//IETF//DTD HTML//EN" [
> <!element html o o (head, body) +(blue)>
> <!element blue - - any>
> ]>
> ...
> <blue>
> <p>blue, blue, blue,...
> </blue>
> ...
> -----------------------------------------------

Bert,
Unfortunately this won't work because you are not allowed to define an element
twice in the DTD. Let's recall that the DTD is made of the markup
declarations coming from the declaration subset and from the entity pointed
to by the external identifier PUBLIC "-//IETF//DTD HTML//EN" which is
concatenated right after the subset. So here the first HTML element declaration
would be the one you define in the subset and would be conflicting with the
one in the external entity.
The only thing you may declare twice are entities. In the case where an entity
is declared twice the first definition in the order of recognition counts.

Otherwise I totally support Bert's and Joe's opinions. If one can give
advice regarding implementation perspectives, I'd say that the browser
should send a message to the user to tell him/her about unrecognized
markup in the document.

Christophe

--
Christophe Espert - E-mail: espert@cln46fw.der.edf.fr
========================================================================
EDF - DER	                  | High Text
1, Avenue du General de Gaulle    | 5, rue d'Alsace
92141 Clamart CEDEX  - FRANCE     | 75010 Paris - FRANCE
Tel: 33.1.47.65.43.21 ext. 6635   | Tel: 33.1.42.05.93.15
Fax: 33.1.47.65.50.07		  | Fax: 33.1.42.05.92.48
ISO 8879:1986 - SGML | ISO/IEC 10744:1992 - HyTime | ISO/DIS 10179 DSSSL