W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: xhtml validation

From: Christoph Schneegans <Christoph@Schneegans.de>
Date: Wed, 21 Aug 2002 13:04:31 GMT
To: <www-html@w3.org>
Cc: "Christian Wolfgang Hujer" <Christian.Hujer@itcqis.com>
Message-ID: <ak0a5v.3vvjajv.1@mail.christoph.schneegans.de>

Christian Wolfgang Hujer wrote:

>>> I myself also find the statement "The root element of the document
>>> must contain an xmlns declaration for the XHTML namespace [XMLNS]"
>>> [http://www.w3.org/TR/xhtml1/#strict] a bit misleading.
>>
>> Really? (...)
>
> I'd say in
> <!DOCTYPE html [
> <!ATTLIST html
>     xmlns CDATA "http://www.w3.org/1999/xhtml" #FIXED
> >
> ]>
> <html>
> ...
> </html>
> the root element of the document in fact contains an xmlns declaration for
> the XHTML namespace.

Okay, I stand corrected.

> I'd say:
> "The start tag of the document element must itself contain the xmlns
> attribute that declares the XHTML namespace. The declaration of the
> namespace in the DTD is not enough since user agents are not required to be
> validating or use the DTD at all."

This wording is much better, IMHO.


Regards,
Christoph Schneegans

-- 
<http://schneegans.de/>
Received on Wednesday, 21 August 2002 09:05:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:52 GMT