CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 03:58:32 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 18:30:32 GMT
cache-control: max-age=2592000, public
expires: Mon, 10 Nov 2025 03:58:32 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98cb708b5e48b277
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: MISS
set-cookie: __cf_bm=nqj2asWxSvFCZCUJcPheB8yeOJ1oQtz7gtkKsHNx.UY-1760155112-1.0.1.1-QrrYLTTBnKDPaOBD38og9j8oI_RmZccMGfDq6t15Fd2GKzU5rSHPnDwT_kjV_ix5CSTmQS3OPUQL9P04CanOZWsK1ToXV9YEdGYJm4ebwYY; path=/; expires=Sat, 11-Oct-25 04:28:32 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98cb708b5e48b277-BLR
alt-svc: h3=":443"; ma=86400
<!DOCTYPE foo> not invalid? from Mike Brown on 2000-02-24 (xml-editor@w3.org from January to March 2000)
<!DOCTYPE foo> not invalid?
- From: Mike Brown <mbrown@corp.webb.net>
- Date: Wed, 23 Feb 2000 17:25:13 -0700
- To: "'xml-editor@w3.org'" <xml-editor@w3.org>
- Message-ID: <8D96EDA0AC04D31197B400A0C96C14806A5CD3@ossex1.ossinc.net>
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: https://www.skew.org/ https://www.webb.net/
Received on Wednesday, 23 February 2000 19:25:05 UTC