W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 2000

Not an error, maybe a suggestion

From: Joe Kesselman (yclept Keshlam) <keshlam@alum.mit.edu>
Date: Thu, 03 Aug 2000 11:30:50 -0400
Message-ID: <3989902A.EA2CF9EA@alum.mit.edu>
To: xml-editor@w3.org
Question recently came up of how the DOM should handle

	<!ENTITY foo "<foo>">

I think the answer is that this shouldn't be legal, per 4.3.2 ("An
internal general parsed entity is well-formed if its replacement text
matches the production labeled content.") 

However, that interpretation seems to conflict with your new text for
[E72], which says that a declaration is acceptable even if the declared
entity would be ill-formed if referenced.

The DOM has no good way of representing ill-formed content. The best we
could do would be to turn this into
	<!ENTITY foo "&60;foo&62;">
which is not what the user specified.

What do you expect the Infoset to do when handed such an entity
declaration? How should the DOM present the Infoset's representation?

Joe Kesselman, http://www.lovesong.com/people/keshlam/
Opinions expressed are solely those of the author
Received on Thursday, 3 August 2000 11:31:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:40 UTC