Re: XHTML attributes and namespace, clarification needed

Robin Berjon wrote:
> "The namespace name for an unprefixed attribute name always has no value."

Where exactly is that stated in http://www.w3.org/TR/REC-xml-names/ ? I 
searched for it in both the XML and Namespaces in XML documents, but did 
not find it. That is why people specify sources when they quote.

Right, Google says it's from the Namespaces in XML 1.1 document at 
http://www.w3.org/TR/xml-names11/... (which is strangely enough not 
linked to from XML 1.0 nor XML 1.1).

All I needed was an actual quote from the spec, not Latin, thank you.

Anyways, wasn't there some kind of ban on XML 1.1 because it introduced 
all kinds of incompatibilities with XML 1.0? Is quoting from that spec a 
good idea?

Actually, I read the following sentence in the Errata for the Namespaces 
in XML 1.0 document:

"Namespace Scoping
Change the first paragraph of section 5.1 to read:
     A namespace declaration is considered to apply to the element where 
it is specified and its attributes, and to all elements and their 
attributes within the content of that element, unless overridden by 
another namespace declaration with the same NSAttName part."

... note in particular the use of 'and its attributes'.

So it seems that's not just all there is to it.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!

Received on Wednesday, 15 December 2004 15:10:02 UTC