Re: XHTML 1.1 with namespaces enabled? (PR#651)

> From: "Alexander J. Vincent" <jscript@pacbell.net>
> Date: Tue, 29 Jan 2002 22:38:30 -0800
>
> I've been wrestling for the last several hours over a conceptual
> barrier.  I have a document which is valid XML, but technically is not
> XHTML 1.1.  The doctype tag forces activation of the html: namespace
> directly.
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html:html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
>                <!ENTITY % XHTML.prefixed "INCLUDE" >
>                <!ENTITY % XHTML.prefix "html" >
> ]>
> <html:html xmlns:html="http://www.w3.org/1999/xhtml">
> <html:head><html:title></html:title></html:head>
> <html:body>
> </html:body>
> </html:html>
>
> What bothers me is requirement 2 of XHTML 1.1, Section 2.1.1.  "The root
> element of the document must be |<html>|."
>
> My gut feeling says the above XML document should be treated as XHTML
> 1.1.  I'd appreciate some feedback on this.

The root element is still <html>, you've just made the namespace explicit
(normally it is defaulted). There's no problem.

Best wishes,

Steven Pemberton
Chair, W3C HTML Working group

Received on Wednesday, 6 February 2002 08:15:26 UTC