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

Re: Accepting redundant xmlns declarations

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 10 May 2002 00:19:57 +0200
To: John Levon <levon@movementarian.org>
Cc: www-validator@w3.org
Message-ID: <bbtldu0er5v5piqvr52nhejond2rvabaad@4ax.com>
* 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.

>Would it be possible for xmlns tags that just give
>the current namespace to be ignored by the validator (the rest of my
>code validates fine) ?

For the reason above, no.

>This sort of output comes from docbook XML processed by xsltproc

Fix the style sheets :-)
Received on Thursday, 9 May 2002 18:20:46 GMT

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