<!DOCTYPE foo> not invalid?

I realize that it makes no sense to have neither an external subset
reference nor a literal internal subset in a document type declaration, but
my interpretation of Section 2.8 of the XML 1.0 Recommendation indicates
that a simple <!DOCTYPE foo> document type declaration would not be invalid
(unless the root element wasn't of type 'foo'). Tim Bray's annotated spec
doesn't address this situation, either.

1. Should such a declaration be invalid?
2. If it is not invalid, is there a recommended interpretation of such a
declaration?
3. If this situation should have been addressed by the spec and wasn't, is
it worthy of a mention in the XML 1.0 Specification Errata document?

I haven't done extensive testing, but I am observing that the IBM XML4J
2.0.15 NonValidatingDOMParser class will not parse a document with such a
declaration, while the ValidatingSAXParser class doesn't seem to mind. I'd
like to know which behavior is correct before I report it as a bug.

Thanks-

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/

Received on Wednesday, 23 February 2000 19:25:05 UTC