Re: Accepting redundant xmlns declarations

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