Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Root element specified by DTD ? >Thread Next - Re: Root element specified by DTD ? Re: Root element specified by DTD ?To: NULL Date: 6/3/2006 9:41:00 PM Jukka K. Korpela wrote: > Peter Flynn <peter.nosp@m...> scripsit: > >>> Is this fragment a valid HTML document ? >> >> Yes, perfectly. > > No, it is a valid SGML document, but it is not an HTML document, as > defined in HTML specifications. Yes, if you need to reference the HTML Spec in addition to the DTD. > That would indicate the validity, but the HTML 4.01 specification > requires that one of three specific DOCTYPE declarations be used - not > just that one of three DTDs be used. That's why it is unenforceable by a standard parser. Only browsers implement this requirement, and they are not conforming SGML applications. > And this isn't one of them. > Moreover, the specification explicitly says: > "After document type declaration, the remainder of an HTML document is > contained by the HTML element." > http://www.w3.org/TR/REC-html40/struct/global.html#h-7.3 I'm not clear why you were asking this question if you already knew the answer. ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
