Namespace declarations for 'xml' and 'xmlns'


One thing that Philip's tests highlight is the special handling of the  
'xml' and 'xmlns' prefixes.

In XML, the 'xml' and 'xmlns' prefixes are implicitly bound, such that  
every element effectively has a namespace declaration binding 'xml' to  
the XML namespace and 'xmlns' to the XMLNS namespace. It is illegal to  
define the XMLNS namespace or to bind the XML namespace to any prefix  
other than 'xml'.

In RDFa, the set of namespace mappings is initialised to empty, and  
are "created by authors via the XML namespace syntax".

My questions are:

1. Does the use of the XML namespace syntax within RDFa include the  
constraints on the bindings of the 'xmlns' and 'xml' prefixes?

   (a) is an xmlns:xmlns="..." attribute invalid (and hence ignored)?
   (b) is an xmlns:xml="" attribute invalid (and  
hence ignored)?

2. Is it intended that the namespace bindings seen by RDFa processors  
is different from those seen by standard XML processors (due to the  
lack of implicit bindings for the XML and XMLNS namespaces)?

Thanks in advance for clarifications.

Jeni Tennison

Received on Wednesday, 23 September 2009 13:42:48 UTC