W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > August 2009

Re: The "real" reason why xmlns should "not" be used

From: Toby Inkster <tai@g5n.co.uk>
Date: Wed, 12 Aug 2009 16:45:19 +0100
To: martin@weborganics.co.uk
Cc: RDFa <public-rdf-in-xhtml-tf@w3.org>
Message-Id: <1250091919.32500.98.camel@ophelia2.g5n.co.uk>
On Wed, 2009-08-12 at 16:05 +0100, Martin McEvoy wrote:
> the error is Attribute "xmlns:dc" must be declared for element type 
> "div". ie:
> <dc:div xmlns:dc="http://purl.org/dc/elements/1.1/"> 
> ... 
> </dc:div>

No, that's not true at all.

	<div xmlns:dc="http://purl.org/dc/elements/1.1/">

doesn't place <div> into the DC namespace - <div> remains in the
expected XHTML namespace.

This is a perfectly legal and proper use of namespaces - it just won't
validate properly in DTD-based validators because DTDs can't deal with
namespaces (except in a very limited manner).

This will be my last message on this matter.

Toby A Inkster
Received on Wednesday, 12 August 2009 15:46:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:32 UTC