W3C home > Mailing lists > Public > www-html@w3.org > July 2000

Re: What is an XHTML document?

From: Dan Connolly <connolly@w3.org>
Date: Mon, 24 Jul 2000 15:20:01 -0500
Message-ID: <397CA4F1.7919E20F@w3.org>
To: "L. David Baron" <dbaron@fas.harvard.edu>
CC: www-html@w3.org
"L. David Baron" wrote:
> If these conformance requirements apply to XHTML documents served as
> "text/html", then user agents that also support SGML-based HTML must
> (possibly in violation of section 7.2.1 of RFC 2616 [2]) detect whether
> the content sent as text/html is XHTML or not.

Probably so. I'm having trouble understanding the
XHTML conformance requirements myself:

can't make sense of modularization conformance section
Dan Connolly (Thu, Jul 06 2000) 

"validate against"???
Dan Connolly (Thu, Feb 10 2000) 

In any case, if I were an implementor,
I would key off the presence of an xmlns attribute
in the first start tag to detect XHTML.

i.e. if the string "xmlns" occurs beteween the
first "<html" and the first ">" that follows it
then treat it as XHTML.

Hmm... it might be nice to support other prefixes
for the XHTML namespace, so you might use
"<" followed by an XML name to find the first start tag.

> [1] http://www.w3.org/TR/xhtml1/#uaconf
> [2] http://www.ics.uci.edu/pub/ietf/http/rfc2616.txt
> L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ 

Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Monday, 24 July 2000 16:20:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:54 UTC