W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

Re: Accepting redundant xmlns declarations

From: Thanasis Kinias <tkinias@optimalco.com>
Date: Thu, 9 May 2002 15:32:20 -0700
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: John Levon <levon@movementarian.org>, www-validator@w3.org
Message-ID: <20020509153220.A21356@glaux.ph.cox.net>
scripsit Bjoern Hoehrmann:
> * John Levon wrote:
> >I have been led to understand that XHTML 1.0 Strict documents containing
> >code like :
> >
> ><p xmlns="http://www.w3.org/1999/xhtml">
> >...
> ></p>
> >
> >is well-formed and valid, although the ns declaration is redundant.
> >
> >Is this the case ?
> 
> No, the XHTML 1.0 DTDs do not define a xmlns attribute for element p,
> the only place you may put an xmlns attribute specification is the html
> element.

The confusion might be that it is _well-formed_ XML, but if it doesn't
conform to the DTD it isn't _valid_ XHTML.

-- 
Thanasis Kinias
Web Developer, Information Technology
Graduate Student, Department of History
Arizona State University
Tempe, Arizona, U.S.A.

Ash nazg durbatulūk, ash nazg gimbatul,
Ash nazg thrakatulūk agh burzum-ishi krimpatul
Received on Thursday, 9 May 2002 18:33:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT