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

Re: Accepting redundant xmlns declarations

From: Nick Kew <nick@webthing.com>
Date: Thu, 9 May 2002 23:30:02 +0100 (BST)
To: John Levon <levon@movementarian.org>
cc: <www-validator@w3.org>
Message-ID: <20020509232625.V1510-100000@fenris.webthing.com>

On Thu, 9 May 2002, 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.

As XML, yes.  As HTML no.  This is one of those areas where XHTML
is trying to conform to two mutually incompatible standards.

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

You can cure that by adjusting your stylesheet to put the xmlns
attributes in the root element, or suppress it altogether.

Nick Kew

Available for contract work - Programming, Unix, Networking, Markup, etc.
Received on Thursday, 9 May 2002 18:30:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:27 UTC