[whatwg] <base> versus xml:base

Geoffrey Sneddon foolistbar at googlemail.com
Mon Mar 5 13:48:57 PST 2007


On 5 Mar 2007, at 21:07, Keryx Web wrote:

> Geoffrey Sneddon wrote:
> > XHTML 1.0/1.1 doesn't allow xml:base, though, so <base> is the  
> only > > way to set a base URL within the document.
>
> In what way would the XHTML 1.0/1.1 spec **disallow** the use of  
> this element from the xml namespace? It's not *part of* the spec,  
> but that's a different matter, right?


xml:lang and xml:base are the actual attribute names – the XML  
namespace exists so they work within namespace aware parsers (as XML- 
Names is a separate spec that extends XML) – therefore, it must be  
explicitly allowed within the DTD (like xml:lang is).


- Geoffrey Sneddon





More information about the whatwg mailing list